* change for supper xhtml.

This commit is contained in:
wangyidong
2018-12-11 16:38:03 +08:00
parent dfe6066d78
commit 89409fe3ef
6 changed files with 158 additions and 1 deletions
+34
View File
@@ -156,4 +156,38 @@ class router extends baseRouter
$this->session->set('rand', $this->session->random);
echo json_encode($view);
}
/**
* PATH_INFO方式解析,获取$URI和$viewType。
* Parse PATH_INFO, get the $URI and $viewType.
*
* @access public
* @return void
*/
public function parsePathInfo()
{
parent::parsePathInfo();
if($this->get->display == 'card')
{
$this->viewType = 'xhtml';
}
}
/**
* GET请求方式解析,获取$URI和$viewType。
* Parse GET, get $URI and $viewType.
*
* @access public
* @return void
*/
public function parseGET()
{
parent::parseGET();
if($this->get->display == 'card')
{
$this->viewType = 'xhtml';
}
}
}