Yii Learning (1) ---- usage

Source: Internet
Author: User

1. Download and install Article 1.1 Add the downloaded yii framework source code to the php runtime environment. What is xampp used here? C: \ _ work \ xampp \ htdocs \ yii-core first, I have configured the local environment path to www.yii.com. How can I configure it? 1. open the file C: \ Windows \ System32 \ drivers \ etc \ hosts. 2. Add 127.0.0.1 www. yii. com3, open the C: \ _ work \ xampp \ apache \ conf \ extra \ httpd-vhosts.conf file in apache, add at the end of the file: <VirtualHost *: 80> DocumentRoot "C: /_ work/xampp/htdocs/yii "ServerName www.yii.com </VirtualHost> open the browser www.yii.com/yii-core/requirements/index.php to check the installation requirements of zookeeper. 1.2 use the yii framework to generate a yii application. Here, we first add the php environment to the environment variable. Use the yiic command to generate an application: cmd à cd C: \ _ work \ xampp \ htdocs \ yii-core \ framework à yiic webapp php environment path \ Project name access: www.yii.com \ Project name, enter a welcome page. 2. index of the directory structure of the file generated by yii. php entry file asserts contains public resource file css contains css file images contains image file themes contains application topic protected contains protected application file-yiic command line script-yiic. yiic Command Script in bat Windows

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.