B: Do you mean a class variable?

$this->myHelper->enabled = false;

On Wed, Jul 8, 2009 at 2:55 PM, majna<[email protected]> wrote:
>
> 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