PHP-Yii Framework: quickly build a web application skeleton
Source: Internet
Author: User
Basically, Yii (abbreviation of Yiyi, Yesitis) is a high-performance PHP framework used to develop web2.0 applications. In the official website, quick, secure, and professional. Before you start, you must prepare the environment. Install PHP. To be able to develop... "/> SyntaxHighlighter. Basically, Yii is a high-performance PHP framework used to develop web 2.0 applications. In the official website, quick, secure, and professional. Before you start, you must prepare the environment. Install PHP. MySQL also needs to be installed to develop DB-based web applications. EasyPHP5.3 (including web servers, PHP, and MySQL) is installed in my local environment ). An independent PHP5.4 is also installed locally. The specific environment is set up to search for a bunch, which is skipped here. To quickly Create a web application, run the following command: Create a Web application under 'C: \ Progs \ EasyPHP-5.3.9 \ www \ testdrive '? (Yes | no) [no]: y mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/assets mkdir C: /Progs/EasyPHP-5.3.9/www/testdrive/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 C: /Progs/EasyPHP-5.3.9/www/testdrive/images generate index-test.php generate index. php mkdir C:/Progs/EasyP HP-5.3.9/www/testdrive/protected generate protected /. htaccess mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/commands mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/commands/shell mkdir C: /Progs/EasyPHP-5.3.9/www/testdrive/protected/components generate protected/components/Controller. php generate protected/components/UserIdentity. php mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected /Config generate protected/config/console. php generate protected/config/main. php generate protected/config/test. php mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/controllers generate protected/controllers/SiteController. php mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/data generate protected/data/schema. mysql. SQL generate protected/data/schema. sqlite. SQL generate protected/data/test Drive. db mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/extensions mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/messages mkdir C: /Progs/EasyPHP-5.3.9/www/testdrive/protected/migrations mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/models generate protected/models/ContactForm. php generate protected/models/LoginForm. php mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/runtim E mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/tests generate protected/tests/bootstrap. php mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/tests/fixtures mkdir C: /Progs/EasyPHP-5.3.9/www/testdrive/protected/tests/functional generate protected/tests/functional/SiteTest. php generate protected/tests/phpunit. xml mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/tests/report mkdir C:/P Rogs/EasyPHP-5.3.9/www/testdrive/protected/tests/unit generate protected/tests/WebTestCase. php mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/views mkdir C: /Progs/EasyPHP-5.3.9/www/testdrive/protected/views/layouts generate protected/views/layouts/column1.php generate protected/views/layouts/column2.php generate protected/views/layouts/main. php mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/prot Ected/views/site generate protected/views/site/contact. php generate protected/views/site/error. php generate protected/views/site/index. php generate protected/views/site/login. php mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/protected/views/site/pages generate protected/views/site/pages/about. php generate protected/yiic. bat generate protected/yiic. php mkdir C:/Progs/EasyPHP-5. 3.9/www/testdrive/themes mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/themes/classic mkdir C: /Progs/EasyPHP-5.3.9/www/testdrive/themes/classic/views generate themes/classic/views /. htaccess mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/themes/classic/views/layouts mkdir C: /Progs/EasyPHP-5.3.9/www/testdrive/themes/classic/views/site mkdir C:/Progs/EasyPHP-5.3.9/www/testdrive/themes/classic/views/system Y Our application has been created successfully under C: \ Progs \ EasyPHP-5.3.9 \ www \ testdrive. In fact, here, the application has been established. Next we will start EasyPHP to test the application we just created. it seems like a magic horse that reminds me of the Rails framework. it is also a command and an application. First, I felt cool. I had the courage to continue, Hey. Let's see what is generated in addition to the Home page:
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