Create an app controller and have both controllers extend it. Then move
your ping function into the app controller.

- "The cold winds are rising"
On Sep 5, 2012 6:06 PM, "Salines" <[email protected]> wrote:

> eg I have a plugin called Test, and the class named TestController, where
> I have a ping function  , public function ping() {...}
>
> how can I call the ping function from app controller beforeFilter function?
>
> public function beforeFilter(){
>  // call Plugin/Test/TestController/ping() ???
> }
>
> Thanx
>
>
>  --
> 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].
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>

-- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to