If on Cake 1.2:

$view =& ClassRegistry::getObject("view");
$vars = $view->getVars();

On Apr 17, 7:47 am, Copongcopong <[EMAIL PROTECTED]> wrote:
> Any consequence(s) of getting viewVars from ClassRegistry? I am trying
> to get some data in viewVars to be initialize for my helper.
>
> Any better way (or best practice) to accomplish this? The main goal is
> to have my viewVars, that were loaded using
> AppController::beforeRender(),  be accessible by my Helper.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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