Saturday, April 3, 2010

Default Layout and Controller

Hello,

This is my first message and I'm practically new on CakePHP. I have
this doubt. In my default layout I have a selection box that's filled
with data from the database, but how can I have access to the database
if there's no controller associated to the default layout. I have an
understanding that Cakephp works something like this

Request -> Controller -> Layout -> View

I want to do this:

Controller -> Default Layout [$myvariable] -> View

What controls the default layouts?

Thank you very much for your answers!

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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

No comments: