zend framework2 下载及安装

时间:2023-03-08 23:09:21
zend framework2 下载及安装

1、安装XAMPP

2、安装zend studio

3、在GITHUB上下载一个zendframework模板,插入到IDE中

4、将下载的zend framework2文件夹解压放在vendor文件夹下

5、官网下载composer 软件,cmd 切换到项目文件夹下 执行composer install 自动安装zf2

6、在apache的httpd-vhost.conf下添加

<VirtualHost *:80>
    DocumentRoot "E:/XAMPP/htdocs/test1/public"
    ServerName zf2-tutorial.localhost
    # This should be omitted in the production environment
    SetEnv APPLICATION_ENV development
    <Directory "E:/XAMPP/htdocs/test1/public">
        DirectoryIndex index.php
        AllowOverride All       
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

7、本机hosts文件添加 127.0.0.1 test1.localhost

8、浏览器中输入test1.localhost

注:  SetEnv APPLICATION_ENV development 正式上线之后删除

相关文章