mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Router 기능 추가
This commit is contained in:
parent
ad0144b4e1
commit
bbdd1874de
4 changed files with 255 additions and 34 deletions
|
|
@ -358,6 +358,13 @@ class Context
|
|||
// check if using rewrite module
|
||||
$this->allow_rewrite = ($this->db_info->use_rewrite == 'Y' ? TRUE : FALSE);
|
||||
|
||||
// If using rewrite module, initializes router
|
||||
if($this->allow_rewrite)
|
||||
{
|
||||
$oRouter = Router::getInstance();
|
||||
$oRouter->proc();
|
||||
}
|
||||
|
||||
// set locations for javascript use
|
||||
if($_SERVER['REQUEST_METHOD'] == 'GET')
|
||||
{
|
||||
|
|
@ -1535,7 +1542,10 @@ class Context
|
|||
'act.document_srl.key.mid.vid' => ($act == 'trackback') ? "$vid/$mid/$srl/$key/$act" : ''
|
||||
);
|
||||
|
||||
$query = $target_map[$target];
|
||||
$oRouter = Router::getInstance();
|
||||
$oRouter->setMap($target_map);
|
||||
|
||||
$query = $oRouter->makePrettyUrl($target);
|
||||
}
|
||||
|
||||
if(!$query)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue