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__).'/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(); ?>
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!