WebMIS基于YII2轻量级、高性能、面向对象的HMVC框架!
Home: http://yii.webmis.vip/
Admin: http://yii.webmis.vip/admin/index
uanme: admin passwd: admin
composer create-project webmiss/yii yii
public/db/mvc.sql
composer update
# 编码
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>
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;
}
Home: http://localhost/
Admin: http://localhost/admin/index/index