SOLVED.

http://groups.google.com/group/cake-php/browse_thread/thread/b05e1b7d24d89f8c

Kind of hard to get back on track after going through REST, I was
reading back some post and solved this, have been unRESTful.

:-)

Thanks for looking.

On Jan 15, 10:38 pm, John Maxim <[email protected]> wrote:
> TYPO: I mean I created DEFAULT_NEWS.ctp
>
> On Jan 15, 10:35 pm, John Maxim <[email protected]> wrote:
>
> > Hi,
>
> > How am I going to set a different layout for my News::controller ?
> > Currently, I'm using default.ctp for all controllers. I created
> > another layout called news_default.ctp in app/views/layout/
>
> > So upon reading this:http://book.cakephp.org/view/1080/Layouts
>
> > I created in users::controller
>
> > function viewActive() {
> >                         $this->layout = 'default_news';
> >     }
>
> > But where am I going to place this: var $layout = 'default_news';
> > ?
>
> > How does it know when to use default_news.ctp when we browse to
> > news::controller?
>
> > This is a bit confusing.
>
> > Can anyone explain a bit more in depth and clearer?
>
> > Thanks,
> > Maxim

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