Trying to Create An Object in ZF but gives Application Error
I am New To Zend Framework. However while go through several tutorials I created a model file user.php where I created a class user extends Zend_Db_Table_Abstract
and when i create an object of that class in my controller file it gives the application error as follows:
Fatal error: Class 'User' not found in /opt/lampp/htdocs/hello_zend/application/controllers/ShowketControll开发者_如何学运维er.php on line 17
You have to load file where the class User is, or autoload all model class.
How to do that, You will find answer here:
How mvc works in Zend framework
精彩评论