去除request定义,内核已有
This commit is contained in:
@@ -207,7 +207,7 @@
|
|||||||
{if $meta_title}
|
{if $meta_title}
|
||||||
<span>{$meta_title}</span>
|
<span>{$meta_title}</span>
|
||||||
{else/}
|
{else/}
|
||||||
<span>{:lang($request->controller().'_'.$request->action())}</span>
|
<span>{:lang($Request->controller().'_'.$Request->action())}</span>
|
||||||
{/if}
|
{/if}
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|||||||
@@ -137,7 +137,6 @@ class Base extends \think\Controller{
|
|||||||
|
|
||||||
//request信息
|
//request信息
|
||||||
protected function requestInfo(){
|
protected function requestInfo(){
|
||||||
$this->request = \think\Request::instance();
|
|
||||||
$this->param = $this->request->param();
|
$this->param = $this->request->param();
|
||||||
defined('MODULE_NAME') or define('MODULE_NAME', $this->request->module());
|
defined('MODULE_NAME') or define('MODULE_NAME', $this->request->module());
|
||||||
defined('CONTROLLER_NAME') or define('CONTROLLER_NAME', $this->request->controller());
|
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_POST') or define('IS_POST', $this->request->isPost());
|
||||||
defined('IS_GET') or define('IS_GET', $this->request->isGet());
|
defined('IS_GET') or define('IS_GET', $this->request->isGet());
|
||||||
$this->url = $this->request->module() . '/' . $this->request->controller() . '/' . $this->request->action();
|
$this->url = $this->request->module() . '/' . $this->request->controller() . '/' . $this->request->action();
|
||||||
$this->assign('request',$this->request);
|
|
||||||
$this->assign('param',$this->param);
|
$this->assign('param',$this->param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user