今天我下载了 3.3.0 但在使用 Auth 和 ORM 时出错:
致命错误:在第 37 行的 /home/vsao4/domains/v4.mclub.vn/public_html/modules/auth/classes/Kohana/Auth.php 中找不到类 'Auth_Orm'
我的身份验证配置如下:
'driver' => 'orm',
'hash_method' => 'md5',
'hash_key' => 'secret',
'lifetime' => 1209600,
'session_type' => Session::$default,
'session_key' => 'auth_user',
代码是:
$ars = array(
'username'=>'manhquan',
'password'=>'232323',
'email'=>'manhquan@fifthmediacorp.com'
);
if (Auth::instance()->login($ars['username'], $ars['password']))
{
// sucessfully loged
$this->response->body('login');
} else {
//TODO error
$this->response->body('not login');
}