进入 yii frameowrk所在的项目
以我本地的为列 进入 D:\xiaoshuo\yii\framework
输入命令 yiic webapp new_novel
其中 new_novel为项目的名称 随便你自己起
D:\xiaoshuo\yii\framework>yiic webapp new_novel
Create a Web application under 'D:\xiaoshuo\yii\framework\new_novel'? (yes|no) [
no]:yes(这里我们输入yes然后会自动创建一些文件和文件夹)
输入完以后 系统会自动输出一下一系列的命令
mkdir D:/xiaoshuo/yii/framework/new_novel
mkdir D:/xiaoshuo/yii/framework/new_novel/assets
mkdir D:/xiaoshuo/yii/framework/new_novel/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 D:/xiaoshuo/yii/framework/new_novel/images
generate index-test.php
generate index.php
mkdir D:/xiaoshuo/yii/framework/new_novel/protected
generate protected/.htaccess
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/commands
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/commands/shell
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/components
generate protected/components/Controller.php
generate protected/components/UserIdentity.php
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/config
generate protected/config/console.php
generate protected/config/main.php
generate protected/config/test.php
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/controllers
generate protected/controllers/SiteController.php
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/data
generate protected/data/schema.mysql.sql
generate protected/data/schema.sqlite.sql
generate protected/data/testdrive.db
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/extensions
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/messages
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/migrations
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/models
generate protected/models/ContactForm.php
generate protected/models/LoginForm.php
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/runtime
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/tests
generate protected/tests/bootstrap.php
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/tests/fixtures
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/tests/functional
generate protected/tests/functional/SiteTest.php
generate protected/tests/phpunit.xml
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/tests/report
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/tests/unit
generate protected/tests/WebTestCase.php
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/views
mkdir D:/xiaoshuo/yii/framework/new_novel/protected/views/layouts
generate protected/views/layouts/column1.php
generate protected/views/layouts/column2.php
generate protected/views/layouts/main.php
mkdir D:/xiaoshuo/yii/framework/new_novel/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 D:/xiaoshuo/yii/framework/new_novel/protected/views/site/pages
generate protected/views/site/pages/about.php
generate protected/yiic
generate protected/yiic.bat
generate protected/yiic.php
mkdir D:/xiaoshuo/yii/framework/new_novel/themes
mkdir D:/xiaoshuo/yii/framework/new_novel/themes/classic
mkdir D:/xiaoshuo/yii/framework/new_novel/themes/classic/views
generate themes/classic/views/.htaccess
mkdir D:/xiaoshuo/yii/framework/new_novel/themes/classic/views/layouts
mkdir D:/xiaoshuo/yii/framework/new_novel/themes/classic/views/site
mkdir D:/xiaoshuo/yii/framework/new_novel/themes/classic/views/system
Your application has been created successfully under D:\xiaoshuo\yii\framework\n
ew_novel.
最后我们在浏览器里面看这个项目的演示效果