如何安装Yii框架
1、下载yii,打开yii官网,找到你要下载的内容
2、再安装php环境,这里列出我用的PHPstudy.图中介绍安装
3、下载完的yii放在www文件夹下
4、打开\framework下面yiic.bat运行这个文件创建的应用,或者 在www目录下新建inde旌忭檀挢x.php 其内容:<?php// change the following paths if necessary$yii=dirname(__FILE__).'/framework/yii.php';$config=dirname(__FILE__).'/protected/config/main.php';// remove the following line when in production mode// defined('YII_DEBUG') or define('YII_DEBUG',true);require_once($yii);Yii::createWebApplication($config)->run();?>加载框架 打开 :http://localhost/ 本地浏览就可以看到你安装成功了
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。