Sunday, April 4, 2010

Re: Default Layout and Controller

I don't completely understand your question. To change layouts you can
add $this->layout='layoutname' to either view or controller. I usually
set mine in controller.


Mike Karthauser
Brightstorm limited
Tel: 07939252144

On 3 Apr 2010, at 22:00, Alejandro <alejandrofloresm@gmail.com> wrote:

> 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
>

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

To unsubscribe, reply using "remove me" as the subject.

No comments: