A:
$view =& ClassRegistry::getObject('view');
debug($view->layout);




On Jul 8, 5:22 pm, Ernesto <e.fanz...@gmail.com> wrote:
> Hello.
>
> 2 simple questions about helpers:
>
> A - how can i retrieve the current layout name from inside an helper?
>
> B - myHelper class has a global variable called "enabled". Is there
> any way to set myHelper::enabled = false from a controller?
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to