Welcome Guest, Not a member yet? Register   Sign In
Cannot find class
#1

[eluser]wesleychristelis[/eluser]
I have this model with User.php

and obviosly a class User that extends activerecord model.

when login with my user cred.

I get the following error:

Fatal error: Class 'User' not found in C:\wamp\www\Projects\DBView\application\controllers\auth.php on line 12

my auth.php file looks as follows :


class Auth extends MY_Controller
{
function login()
{
$data = array();

if($_POST)
{
// The user has submitted the login form
$user = User::validate_login($_POST['username'], $_POST['password']);

if($user)
redirect('dashboard');
else
$data['message'] = 'The user / password combination that you have entered is invalid.';
}

$this->load->view('auth/login', $data);
}

function logout()
{
User::logout();

redirect('');
}
}

what am i missing ... sorry new to this




Messages In This Thread
Cannot find class - by El Forum - 07-09-2012, 04:08 AM
Cannot find class - by El Forum - 07-09-2012, 05:13 PM
Cannot find class - by El Forum - 07-10-2012, 12:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB