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

Check whether yii is installed successfully

Release: 2019-12-07 14:44:21
Original
2707 people have browsed it

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();
?>
Copy after login

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!

Related labels:
yii
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template