Hi

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.

[1]
http://book.cakephp.org/1.3/en/view/1082/Passing-Variables-into-an-Element

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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to