I have a similar problem: I use cake 1.2.0.5146alpha.

In my controller I have a beforeFilter() method like this:
-----------------------------------------------------------------------------------
if($this->Session->check('Auth.User')){
            $this->reg();
        }
        else{
            $this->redirect(array('controller'=>'mytests'), null, true);
            exit();
        }
-----------------------------------------------------------------------------------

And then in another component I'm using (a modified version of the
Form_Wizard)
I have the following startup() function
-----------------------------------------------------------------------------------
 function startup(&$controller) {
    $this->controller= &$controller;
    $this->Session= &$controller->Session;
    $this->params = &$controller->params;
    $this->data = &$controller->data;
}

-----------------------------------------------------------------------------------


Without the beforeFilter() function everything works great.

with it I get the following error:

Fatal error: Call to a member function check() on a non-object in C:
\www\cake_quest\app\controllers\components\form_wizard.php on line 140

Any clue on how to solve this conflict?

Cheers

Dan


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