Home >Backend Development >PHP Tutorial >PHP configuration yii framework_PHP tutorial

PHP configuration yii framework_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:37:20931browse

As a personal hobby, I studied the yii framework of PHP.

First of all, the prerequisite for studying the yii framework is to download the one-click installation of php and zend studio. The one-click installation of php gives the link as follows http://www.download3k.com/Install-XAMPP.html. . . The link to zend studion is as follows http://www.zend.com/en/products/studio/downloads

Then we install these two software. After installation, open xampp and then install Apache and start the service as shown in the figure:

Next we get to the point---------yii framework

Find a yii framework on the Internet and download it, then unzip it and put it under the root directory of xampp/htdocs installed by our PHP one-click installation, and rename it to yii, as shown in the picture

Next we will operate the yii framework through cmd. The operation is as shown:

The meaning of this picture is to enter the path to yii through cmd, and then create a web project and the specified path through yiic.

We can view the created wen project named yiiphp, as shown in the picture:

We can run it on the page to prove that our web project has been successful:

During the process of generating the project, we may encounter that "php.exe" is not an internal or external command. In this case, we only need to configure yiic.bat (configured in the yii framework) and put the

inside

if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe Change to if "%PHP_COMMAND%" == "" set PHP_COMMAND=D:xamppphpphp.exe

I will show you how to use Yii to develop web projects based on my learning progress.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/735889.htmlTechArticlePersonal hobby, I studied the yii framework of php. First of all, the prerequisite for studying the yii framework is to download the one-click installation of php and zend studio. The one-click installation of php gives the following link http://www.download3k...
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