location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
一、相關配置1、配置文件:config/config.php<?phpreturn [// 是否開啓路由 'url_route_on'
//模型(在模塊下建立model目錄,然後建模型文件如Test.php,文件名同表名test)//Test:: 同價於 Db::table('test