Load a different layout in PagesController

I have the method beforeFilter where I load a layout but in the method “admin” I want to load a different layout and it doesn’t let me do it.


If I delete the beforeFilter method, I don’t load any layout. How can i fix this? Thank you