开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜