[eluser]Cgull[/eluser]
Hello,
I am using CI 2.1.3
I am creating a module out of ion_auth.
Everything worked fine until I decided to create a different controller for user interaction.
I created a user module that extends Auth.
Auth extends MX contorller
In my user controller for testing purposes I have this:
Code:
class User extends Auth
{
public $data = array();
function __construct()
{
parent::__construct();
}
function index()
{
echo 'on';
}
}
When I browse mysite/auth/user I get this error:
Message: Undefined property: Page::$db
Filename: libraries/Session.php
Line Number: 201
My folders:
application/modules/auth/controllers/
auth.php
user.php
Why do I get this error?
Everything works fine when I browse mysite/auth
Can someone please help?
Thank you