Home  >  Article  >  PHP Framework  >  Check whether yii is installed successfully

Check whether yii is installed successfully

尚
Original
2019-12-07 14:44:212668browse

Check whether yii is installed successfully

Download yii: Open the yii official website and find the content you want to download (recommended learning: yii framework)

Then install the php environment, here List the PHPstudy I use. The picture introduces the installation

Put the downloaded yii in the www folder

Open yiic.bat under \framework and run the application created by this file, or run the application created by this file in www Create a new index.php in the directory and its content:

<?php
// change the following paths if necessary
$yii=dirname(__FILE__).&#39;/framework/yii.php&#39;;
$config=dirname(__FILE__).&#39;/protected/config/main.php&#39;;
// remove the following line when in production mode
// defined(&#39;YII_DEBUG&#39;) or define(&#39;YII_DEBUG&#39;,true);
require_once($yii);
Yii::createWebApplication($config)->run();
?>

Loading framework

Open: http://localhost/ You can see that your installation is successful by browsing locally.

The above is the detailed content of Check whether yii is installed successfully. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to re-url in yiiNext article:How to re-url in yii