Fatal error: Call to undefined method stdClass::logout() in C:\wamp\www
\Subscriptions\app\controllers\users_controller.php on line 17
is the error I get yet my controller is setup like follows:
<?php
class UsersController extends Controller
{
public $name = "Users";
public $components = array('auth');
public function beforeFilter()
{
$this->Auth->loginRedirect = array('controller' => 'members',
'action' => 'home');
}
public function admin_login()
{
}
public function admin_logout()
{
$this->redirect( $this->Auth->logout() );
}
function logout()
{
}
}
?>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---