How to use the Controller of Zend Framework's MVC framework
This article is about how to use Controller in Zend Framework's MVC framework. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
The details are as follows:
Here is a brief introduction to the basic use of Controller in MVC mode.
Basic use examples:
Root@coder-671T-M:/www/zf_demo1/application# tree.
├── Bootstrap.php
├── configs
│ └── application.ini
├── controllers
│ ├── ErrorController.php
│ └── IndexController.php
├── models
└── views
├── helpers
└── scripts
├── error
│ └── error.phtml
└── index
└── index.phtml
IndexController.php