页面跳转的error和success模板分开 \think\controller类添加result方法 用于单独返回不同格式的api数据

This commit is contained in:
thinkphp
2016-02-14 22:48:14 +08:00
parent f637f06e0d
commit 00f226a6f9
3 changed files with 18 additions and 3 deletions

View File

@@ -91,7 +91,8 @@ return [
// +----------------------------------------------------------------------
// 默认跳转页面对应的模板文件
'dispatch_jump_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
'dispatch_success_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
'dispatch_error_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
// 默认的模板引擎
'template_engine' => 'Think',