请问如何确认YII框架是否已成功安装?
- 内容介绍
- 文章标签
- 相关推荐
本文共计129个文字,预计阅读时间需要1分钟。
相关专题:
再安装php环境,这里列出我用的PHPstudy.图中介绍安装
下载完的yii放在www文件夹下
打开\framework下面 yiic.bat运行这个文件创建的应用,或者在www目录下新建index.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/ 本地浏览就可以看到你安装成功了。
本文共计129个文字,预计阅读时间需要1分钟。
相关专题:
再安装php环境,这里列出我用的PHPstudy.图中介绍安装
下载完的yii放在www文件夹下
打开\framework下面 yiic.bat运行这个文件创建的应用,或者在www目录下新建index.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/ 本地浏览就可以看到你安装成功了。

