Dear all, Please ignore my below email! I find out because I did not give source to each element so I got the error. Sorry for this trouble!
Sincerely, Rocky www.epchurchwebsite.com On Thu, Nov 11, 2010 at 4:37 PM, Rocky Ou <easternpeo...@gmail.com> wrote: > 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