PHP-Yii Framework: quickly build a web application skeleton. 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 the start, the environment Basically, Yii (abbreviation: easy, Yes it is) 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:
The command output is as follows:
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/EasyPHP-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/testdrive. 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/runtime
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:/Progs/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/protected/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
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
Your application has been created successfully under C: \ Progs \ EasyPHP-5.3.9 \ www \ testdrive.
In fact, the application has been created. Start EasyPHP and test the application just created.
Suddenly, I remembered the Rails framework. It was 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: