webmiss / yii
Webmis项目
v1.0.0
2018-07-08 12:04 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: 2.0.15.1
This package is not auto-updated.
Last update: 2024-09-29 05:48:30 UTC
README
WebMIS基于YII2轻量级、高性能、面向对象的HMVC框架!
主页: http://yii.webmis.vip/
管理界面: http://yii.webmis.vip/admin/index
用户名: admin 密码: admin
安装
1) 创建项目
composer create-project webmiss/yii yii
2) 导入数据库
public/db/mvc.sql
3) 更新项目
composer update
美化URL
1) Apache(public/.htaccess)
# 编码 AddDefaultCharset UTF-8 <IfModule mod_rewrite.c> # 重写 RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?r=/$1 [QSA,L] </IfModule>
2) Nginx
listen 80; server_name yii.webmis.cn; set $root_path '/home/www/yii/public/'; root $root_path; index index.php index.html; try_files $uri $uri/ @rewrite; location @rewrite { rewrite ^/(.*)$ /index.php?r=/$1; } location ~* ^/(webmis|upload|themes|favicon.png)/(.+)$ { root $root_path; }
URL
Home: https:/// Admin: https:///admin/index/index