project yii2-app-template
Yii 2 Application Template
wayhood/yii2-app-template
Yii 2 Application Template
- Wednesday, January 21, 2015
- by yiitech
- Repository
- 1 Watchers
- 1 Stars
- 24 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Yii 2 Application Template
DIRECTORY STRUCTURE
apps
common
config/ contains shared configurations
mail/ contains view files for e-mails
models/ contains model classes used in both backend and frontend
scripts
init init project
app app creation/deletion tool
requirements php environment check.
runtimes/ contains files generated during runtime by app name
vendor/ contains dependent 3rd-party packages
environments/ contains environment-based overrides
tests contains various tests for the advanced application
codeception/ contains tests developed with Codeception PHP Testing Framework
INSTALLATION
php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta4"
php composer.phar create-project --prefer-dist --stability=dev wayhood/yii2-app-template app
GETTING STARTED
- 运行
scripts/app
创建 web 或 console 的应用程序, 会在apps下创建
- 运行
scripts/init
初始化项目
Set document roots of your Web server:, (*1)
- for appname
/path/to/yii-application/apps/"appname"/web/
and using the URL http://webserver/pato/to/
Run a Console App:, (*2)
yii系统的命令,使用 vendor/bin/yii
, (*3)
快速还原官方的 yii2-app-advanced:, (*4)
scripts/app --act=Create --type=Web --name=backend
scripts/app --act=Create --type=Web --name=frontend
scripts/app --act=Create --type=Console --name=console --enter=yii