Introducing Zendframework.
Zendframework Framework is a relatively popular early framework, he is also the framework developed by Zend Company, as for his heat and attention, give you Baidu a bit haha. To tell the truth, zf2 than the previous zf1 made a great improvement, my personal rough feeling should also be subversive of it.
Configure the Environment:
Personal more lazy, generally like to use XAMPP directly build wamp environment, if it is linu please refer to other documentation installation lamp environment. Note: zf2 to PHP requirements are in the php5.3 version, while Apache to support URL rewrite Oh.
To build MVC:
1: Directly to the official download this bar Zendskeletonapplication-master this to your PHP can access the directory below, I generally directly placed under the XAMPP htdocs below. Put it in the file order of your project.
2. Then download the ZF package, download the following package to extract all the files inside the vendor directory, note that the bin directory inside the package is also copied.
3. Then configure your own virtual host:
############ #zf Test Engineering #######################
<virtualhost *:80>
ServerName Www.zf.demo
DocumentRoot "D:/xampp/htdocs/zendskeletonapplication-master/public"
</VirtualHost>
4: Reboot under Apache
5: Then direct access to the bar Http://www.zf.demo/application/index/demo (I've added a method here myself below the index controller)
Note The default access is http://www.zf.demo/directly to see the Welcome to your interface.
Please forgive me for some of the inappropriate articles. Here is just a reference for everyone.
This article is from the "single Fishing Cold River Snow" blog, please be sure to keep this source http://dudochen.blog.51cto.com/635763/1570342
Under Windows configuration Zendframework2