Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9091449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:36:50+00:00 2026-06-16T22:36:50+00:00

I am having one array like this. The tree structure of this array is

  • 0

I am having one array like this. The tree structure of this array is very big. I want to print the array using the smarty tags in the html file. I am using this code to do this,

Assigned like this in PHP file, $smarty->assign("arrForumData", $arrForumData);

In HTML File like this for single dimension array.

{foreach item=foo from=$arrForumData}
{$foo.question}
{$foo.name} etc...
{/foreach}

I dont know how to print array which is like below in smarty. Please guide me how to print multidimension array’s in smarty. Hope my question is clear. thanks in advance.

ARRAY

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T22:36:51+00:00Added an answer on June 16, 2026 at 10:36 pm

    Exact answer. Working perfect for me.

    {foreach name=outer item=v from=$arrForumData}
            {$v[0].question_id}
            {$v[0].project_id}
            {$v[0].name}
            {$v[0].email}
            {$v[0].question}
            {$v[0].created_on}
    
          {foreach key=key item=item from=$v[1]}
            {$item.aQId}
            {$item.aAns}
            {$item.aName}
            {$item.aEmail}
            {$item.aDate}
          {/foreach}
    {/foreach}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having one array like this, array[0][0],[1][0],[2][0] are questions and array[0][1],[1][1],[2][1] are the
My aim is to get a json array like this one: var args =
I have one array that contains some settings that looks like basically like this:
I'd like to know if this code... echo $this->Html->link( <h3>test</h3>.$this->Html->image(image.jpg).<p>Some text</p>, /link, array('escape' =>
I want to create a tree like structure where the user can drag and
I am still having issues copying the part of one array to another. I
I am having one heck of a hard time trying to figure this out.
I am having one Gtk+ and C application in which i want to set
Having some difficulty trying to do this. I'm fetching an array of all submissions,
iam having an array of items like [item1,itmem2,item3]; i have to insert these items

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.