去除request定义,内核已有

This commit is contained in:
2016-08-02 18:23:30 +08:00
parent caae102162
commit 00b55f49f1
2 changed files with 1 additions and 3 deletions

View File

@@ -207,7 +207,7 @@
{if $meta_title}
<span>{$meta_title}</span>
{else/}
<span>{:lang($request->controller().'_'.$request->action())}</span>
<span>{:lang($Request->controller().'_'.$Request->action())}</span>
{/if}
</li>
</ol>

View File

@@ -137,7 +137,6 @@ class Base extends \think\Controller{
//request信息
protected function requestInfo(){
$this->request = \think\Request::instance();
$this->param = $this->request->param();
defined('MODULE_NAME') or define('MODULE_NAME', $this->request->module());
defined('CONTROLLER_NAME') or define('CONTROLLER_NAME', $this->request->controller());
@@ -145,7 +144,6 @@ class Base extends \think\Controller{
defined('IS_POST') or define('IS_POST', $this->request->isPost());
defined('IS_GET') or define('IS_GET', $this->request->isGet());
$this->url = $this->request->module() . '/' . $this->request->controller() . '/' . $this->request->action();
$this->assign('request',$this->request);
$this->assign('param',$this->param);
}