mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-08-30 12:45:32 +08:00
增加template.auto_rule 配置参数 设置默认模板渲染的转换处理规则 1 为小写+下划线 其它为 完全转换小写
This commit is contained in:
@@ -443,9 +443,6 @@ if (!function_exists('view')) {
|
||||
*/
|
||||
function view($template = '', $vars = [], $replace = [], $code = 200)
|
||||
{
|
||||
if ('' === $template) {
|
||||
$template = Loader::parseName(request()->action(true));
|
||||
}
|
||||
return Response::create($template, 'view', $code)->replace($replace)->assign($vars);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user