Hey,

I have structure like this:
array(
    array('name'=>'Top level first item', 'source'=>'ba.com',
'sublist'=>array(
        array('name'=>'Second level first item',  'source'=>'ba_1.com
','sublist'=>array()),
        array('name'=>'Second level second item',  'source'=>'ba_2.com
','sublist'=>array()),
    )),
    array('name'=>'Top level second item', 'source'=>'ca.com',
'sublist'=>array(
        array('name'=>'etc...', 'sublist'=>array(
            array('name'=>'etc...', 'sublist'=>array()),
        )),
    )),
)

How can I generate below output please?
<ul>
    <li><a href="ba.com">Top level first item</a></li>
                   ......
</ul>

I tried to use the code mentioned in FAQ, but get error saying "exception
'PHPTAL_VariableNotFoundException' with message 'Array doesn't have key
named 'source' "



Sincerely,
Rocky
www.epchurchwebsite.com
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to