Under Windows configuration Zendframework2

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.