How to install php framework Yii in win7, win7php framework yii_PHP tutorial

Source: Internet
Author: User
How to install php framework Yii in win7, win7php framework yii. How to install php framework Yii in win7. win7php framework yii this article describes how to install php framework Yii in win7. I would like to share with you for your reference. for details, someone asked me how to install the php yii Framework in win7, and how to install the Yii Framework in win7php.

This article describes how to install php framework Yii in win7. We will share this with you for your reference. The details are as follows:

Someone asked me if I had always reported an error when installing yii in win7. it took me 10 minutes to install yii. How bad is the self-learning ability of the program now? I am not very familiar with Frameworks. framework and other things are not very efficient. There are many integrated things that we don't need. If you have not developed a framework, you can use the framework to standardize the code.

1. download yii

Http://www.yiiframework.com/download/

2. use yiic to generate a web directory

C:\Windows\system32>f:/wamp/www/yii/framework/yiic webapp f:/wamp/www/webCreate a Web application under 'F:\wamp\www\web'? [yes|no] yes   mkdir F:/wamp/www/web/assets   mkdir F:/wamp/www/web/css  generate css/bg.gif  generate css/form.css  generate css/ie.css  generate css/main.css  generate css/print.css  generate css/screen.css   mkdir F:/wamp/www/web/images  generate index-test.php

If a prompt is displayed, php.exe is not an internal command, and the environment variable is missing.

The solution is as follows:

On "My Computer", right-click ==> "property" ==> "advanced" ==> environment variables, find the pathvariable, double-click the path of the executable php file, and click the path of the .exe file.

The following is my append content

F: \ wamp \ php; F: \ wamp \ mysql \ bin \; F: \ wamp \ Apache2 \ bin \

Then save it.

C: \ Windows \ system32> echo % PATH %

Run the preceding command to check whether the environment variable has just been added. if not, set PATH = C in the command line: close the CMD window and open it again.

After the installation, I checked the directory generated by yii. it seems that the directory is clear. it is clear to put the class, model, view, css/js, and images, I don't think it's very nice, that is, php and html are mixed and written together, without templates. If yii does not have any plug-ins, it will be depressing. The website was not well written, and the revision was a crash.

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.