You can access any variables you set() it in the action from
$this->viewVars. This will show you the situation:

        function afterFilter()
        {
                parent::afterFilter();
                die(debug($this->viewVars));
        }

On Wed, Sep 23, 2009 at 7:36 AM, borcho <[email protected]> wrote:
>
> How do I access a variable from action ABC from afterFilter ()? For
> example, I have logic performed in function foe () and a bunch of
> variables, and then after the view of foe is rendered, I would like to
> use afterFilter to save all data. However, I cannot figure out how to
> pass variables between two different functions in the same class.
> Thanks.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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