Fatal error: Class ‘Application_Models_Users’ not found in C:\xampp\htdocs\intern\lc.intern\application\controllers\AuthController.php on line 44
But Application_Models_Users class is already defined in \models\users.php
The following code is present in users.php
class Application_Models_Users extends Zend_Db_Table
{
protected $_name="users";
}
I even established a connection to database in application.ini like this ,
resources.db.adapter = 'PDO_MYSQL'
resources.db.params.host = 'localhost'
resources.db.params.dbname = 'lc.intern'
resources.db.params.username = 'root'
resources.db.params.password = ''
still I get the error …
am I missing something?
You need the class to be named:
Application_Model_Users(note singular Model), notApplication_Models_Users.See the code for the default module resource autoloader which shows that the class
Application_Model_XXXis mapped to the fileapplication/models/XXX.php.