Welcome Guest, Not a member yet? Register   Sign In
Ag_auth - Undefined method
#1

[eluser]Ybor_01[/eluser]
Hi there,

I'm trying to use the AG Auth authentication library. I've installed in accordance with the user guide, and can register new accounts and log in and and out via the admin panel.

I'm extending the Application controller like this:

Code:
<?php

class Example extends Application
{
public function __construct()
{
  parent::__construct();
}
}

/* End of file: example.php */
/* Location: application/controllers/example.php */

Now I'm able to use the restrict function and all of the helper functions.

However, when I try to use the login and logout functions e.g. "$this->ag_auth->logout();" I get the following error:

"Fatal error: Call to undefined method AG_Auth::login() in /var/www/application/controllers/test.php on line 14"

I'd appreciate any help with this.

Thanks.


Messages In This Thread
Ag_auth - Undefined method - by El Forum - 02-04-2013, 04:49 PM
Ag_auth - Undefined method - by El Forum - 02-05-2013, 10:44 AM
Ag_auth - Undefined method - by El Forum - 02-06-2013, 11:46 PM
Ag_auth - Undefined method - by El Forum - 02-07-2013, 04:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB