just $this-set your menu in the controller to the view
you can access the variables in elements (an element is a view after
all)

On 15 mar, 18:39, "LSL" <[EMAIL PROTECTED]> wrote:
> Hallo.
> I'm trying to rewrite our old web application into CakePHP (btw. great
> work). I have one problem.
> I have menu structure in the database in two tables menu_categories
> and menu_items connected with relation 1:n. I would like to have the
> same (but configurable) menu in every page. I have element rendered
> from layout but I don't know how to past data into the element from
> the database. Is there some "standard" cake way to do that?
>
> Thanks in advice,
> Lukas


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to