Hi Mathaios,

There are 2 aproachers (I can see) that you might take:

1) Create a controller and view that based on passed parameters return
a complete HTML segment of your menu. This would be using RequestAction
So in your layout you would put
$this->RequestAction(/nodes/getData/$someParameterBasedOnLocation);
where you want your menu. This would call your nodes controller getData
method, in which you would query the database, set a variable to pass
the data to the view file views/nodes/getData.thtml which would
(however you like) translate the data returning you a div containing
your menu.

2) Using either a component, or the controller itself, find/specify the
menu Array required and set a variable to pass the data to the view,
and in your view/layout/element process said array into html.

The crux of the problem is only defining which menu items to display
(based on where you are if it changes).

Hope that gives you something to go on.

Cheers,

AD7six


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to