Hi,
Try changing the var name inside the iteration, you have 2 vars with same
name ($categories).
....
<?php
if(count($cat['ChildCategory'])>0) {
$child_categories=$this->requestAction('/categories/showlist',array($cat['Category']['id']));
echo $this->element('showlist-dynamic',array('categories' =>
$child_categories));
}
?>
....
LipeDjow
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php