# initYii **Repository Path**: wodrow/initYii ## Basic Information - **Project Name**: initYii - **Description**: yii2 init - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2019-10-17 - **Last Updated**: 2021-06-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # initYii #### Description yii2 模板 #### Software Architecture Software architecture description #### Installation 1. download app `git clone https://gitee.com/wodrow/initYii.git` 2. `cd path/to/dirYii2` 3. `php init` 4. `composer install` 5. set config in `common/config/main-local.php` 6. 挂载对应目录 7. 设置每分钟任务`php /path/to/yii schedule/run --scheduleFile=path/to/project/console/schedule.php 1>> /dev/null 2>&1` 8. 设置web运行目录 `path/to/project/web` #### 伪静态 ##### nginx ``` location / { try_files $uri $uri/ /index.php$is_args$args; } location /app_dir { try_files $uri $uri/ /app_dir/index.php$is_args$args; } ``` ``` location / { index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?s=$1 last; rewrite ^/app_dir(.*)$ /app_dir/index.php?s=$1 last; break; } #autoindex on; } ``` ##### apache Options +FollowSymLinks IndexIgnore */* RewriteEngine on # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php #### Gitee Feature 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md 2. Gitee blog [blog.gitee.com](https://blog.gitee.com) 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) 4. The most valuable open source project [GVP](https://gitee.com/gvp) 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)