* change for supper xhtml.
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user