How to call the callback in a CakePhp Component? <p>I'm using CakePhp 2.2 and I have this simple controller, named <strong>ProvidersController</strong>:</p> <pre><code>&lt;?php class ProvidersController extends AppController { public $components = array('Session', 'Social'); public $layout = false; public function facebook(){ $this-&gt;Social-&gt;auth('facebook', 'success', 'error'); $this-&gt;render(false); } public function google(){ $this-&gt;Social-&gt;auth('google', 'success', 'error'); $this-&gt;render(false); } private function success(){ } private function error(){ } } ?&gt; </code></pre> <p>and this Component, named <strong>SocialComponent</strong>:</p> <pre><code>&lt;?php class SocialComponent extends Component { public function auth($provider, $success, $error){ } } ?&gt; </code></pre> <p>as you can see I have created success() and error() methods inside the controller. Now I pass these names and I would like to call them back from the component.</p> <p>I only pass the name of the callback, how to call them from the component?</p> <p>Thank you!</p>