You can pass logic to your elements [1], either by passing an array of variables or by using the "requestAction" method, personally I prefer the latter.
One solution would be to use a controller action to pass an array of menu items to the element depending on say for example your current location etc.
There may also be helpers available for things like Menu's
Finally I know of a lot of people who simply use standard php to detect the URI and show sub-menus depending on it directly in the element - I'm not a fan of this method.
Kind Regards
Stephen
-- 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment