You mean in the whatever_controller?
This?
function beforeFilter() {
//run parent first
parent::beforeFilter();
//run local to make specific change
$this->layout('alternate_layout');
}
-----Original Message-----
From: Ryan Schmidt [mailto:[email protected]]
Sent: December-11-10 11:08 PM
To: [email protected]
Subject: Re: Localize only some of a controller's pages
On Dec 11, 2010, at 10:58, cricket wrote:
> You could extend the test to check which page is being requested. Or,
> whether $this->params['admin'] is set, etc.
Yes.... but I wouldn't like to have to put all sorts of page-specific logic
into the global beforeFilter. Just as I can access and change the layout
from within the beforeFilter, I would have expected to be able to access and
change the view from within the beforeFilter. Does anybody have a suggestion
how I can do that?
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
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