How the Zend controller calls the files inside the Model folder
The book says that the class in the Model folder can be instantiated directly in the controller without the need to reference the file, but I did not find the class file after the error, ask what is the problem?
Share to:
------Solution--------------------
The name of the model and action does not correspond well, because the framework is automatically based on the __class__ to search the corresponding model, you look at the framework requirements.
------Solution--------------------
In addition to the home page: the name of the other model class is also the name of the action method
------Solution--------------------
Your path is not written, for example, if your db.php is placed under the Model->db folder, your class name should be called Class db_db. I think you're just having this problem.
------Solution--------------------
Instructions on how to use model
http://blog.csdn.net/mengxiangbaidu/article/details/7680729
http://blog.csdn.net/mengxiangbaidu/article/details/7680742