I start to learn this framework. Faced a problem, when I try to authorize a user, an error flies:
ErrorException [Fatal Error]: Call to undefined method Model_User :: where () ); 76 $ user-> where ($ user-> unique_key ($ username), '=', $ username) -> find (); 77}
my authorization code itself
$auth = Auth::instance('orm'); //..... $user = ORM::factory('user'); $auth->login($email, $pas))
I inherit from Controller_My_Template it in turn from Controller_Template Q. How to fix the problem?
Model_User
and for what reasonKohana
cannot find it - xEdelweiss