I've written a small authentication widget and I'm having trouble with
it.  Inside the component I would like to use the calling controller's
redirect() method, but I get the following error:

Fatal error: Call to a member function redirect() on a non-object in
{file} on {line}.

The error occurs when the component runs "$this->controller-
>redirect('/path/to');"

Here is a link to the code of both my component and my controller:

http://bin.cakephp.org/view/2105790944

The code is combined there for ease of reading.  In my installation
the files are in their correct places.

I am using CakePHP 1.1.9 and PHP 5.2.2.  Any ideas what the problem is?

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