Monday, May 2, 2011

Re: $this->layout implementation in a controller

On Thu, Apr 28, 2011 at 1:48 PM, Salines <nikola.paradzik@gmail.com> wrote:
> class MyController extends AppController {
> function beforeFilter(){
>  $this->layout = 'other';
> }
> }
>
> OR
>
> class MyController extends AppController {
> function beforeRender(){
>  $this->layout = 'other';
> }
> }
>

Thank you so much Salines..
It works perfectly. It's saving my time :

--
Regards,,,
mastanto
http://www.mastanto.com
http://thom-sharing.blogspot.com

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

No comments: