when i want to use findfirst i got this error:
Fatal error: Call to undefined method User::findFirst() in C:\wamp\www\soscial\app\controllers\LoginController.php on line 78
$user = User::findFirst("email='$email' AND password='$password' AND show_admin='1'");
this is my code. and i have an model User.php
how can i solve this?