Hi!

I have a Category controller that uses the TreeHelper and the Tree
behaviour
I also have an element for this controller that constructs a css menu.
These are the contents of the element:

echo $tree->generate($menu, array('type' => 'ul', 'id'=>'suckertree1',
'element'=>'menulink', 'model'=>'Category'));

The element is called from the views for the Category controller and
the tree menu is constructed.

How can I use the same element for another action of a different
controller, so that I will present the same menu in different parts of
the site?

Thanks,
Mike


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to