I'm using the **CodeIgniter** framework with **Smarty** and use a custom Smarty function which returns config items: 

```
{ci_config name='sitemap'}

```

This call **returns an multidimensional array** containing the websites sitemap:

```
$config['sitemap'] = array('dashboard' => array('uri'=>'dashboard',
                                                'title'=>'Dashboard'),
                           'photos' => array('uri'=>'photos',
                                             'title'=>'Photos'));

```

*Note: this is an example array, the actual array will be really multilevel*

I would like to **loop this array** but how do I **use the return value in a loop** construct? 

Although wrong, this is what i would like to achieve: 

```
{foreach {ci_config name='sitemap'} as $node} 

<p>{$node.uri}</p> 

{/foreach} 

```

Any suggestions? Thanks!

*Note: I'm using the latest Smarty 3 RC2.*