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




On Jul 8, 5:22 pm, Ernesto <[email protected]> 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 [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