Windows Yii application creation and error handling, windowsyii_PHP tutorial

Source: Internet
Author: User
In Windows, Yii creates an application and handles errors, windowsyii. In Windows, yiicreate an application and handle errors. in Windows, run cmd.exe with the administrator ID. In this example, in the wamp environment: Switch to disk D, switch to the framework directory... ...... 1--C in Windows, create an application and handle errors. in Windows, run Windows II.

Run cmd.exe with the administrator ID in Win7.

In this example, in the wamp environment:
Switch to disk D, and then switch to the framework directory .............
1--C: \ windows \ system32>D:

2--D: \>Cd D: \ wamp \ www \ yii \ framework

Run the yiic command
3--D: \ wamp \ www \ yii \ framework>Yiic

4 --- create an application named newstar under the yii Directory
D: \ wamp \ www \ yii \ framework>Yiic webapp ../newstar


--- An error occurred while executing yiic.-------
1. modify the yiic. bat file
Open the yii installation directory d:/www/yii/framework/yiic. bat, and use notepad to open the following line:
If "% PHP_COMMAND %" = "" set PHP_COMMAND =Php.exe
Because php.exe is not added to Windows environment variables during wampinstallation, yiic cannot be found. Assign the absolute path of php.exe to PHP_COMMAND.
(Your php Installation Path)
"% PHP_COMMAND %" = "" set PHP_COMMAND =D: \ wamp \ bin \ php \ php5.3.10 \ php.exe

Run cmd.exe with the administrator ID in Win7. this example is in the wamp environment: switch to the D disk, and then switch to the framework directory...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.