On Aug 3, 2007, at 10:32 AM, CakeMan wrote:

>
> Hi friends,
> i am very new to Cakephp and developing an application in which i have
> menus that are dyanmic and i am extracting from the database. So i
> want to show them in all the pages for that these menus will be in the
> Default.thtml. But the problem is default.thtml has no controller and
> model.

Try this:

Create a controller that does the logic for your menu.

Create an element that contains the markup for the menu, along with  
any presentational logic.

Use requestAction() to grab the logic from the controller, and hand  
that data to a renderElement() call.

-- John

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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