Fix without path_info
This commit is contained in:
parent
40c9f8cc39
commit
261f61b33c
1 changed files with 6 additions and 0 deletions
|
|
@ -39,6 +39,12 @@ else {
|
||||||
|
|
||||||
$path_info=str_replace(PhangoApp\PhaRouter\Config::$base_url.'index.php', '', $_SERVER['REQUEST_URI']);
|
$path_info=str_replace(PhangoApp\PhaRouter\Config::$base_url.'index.php', '', $_SERVER['REQUEST_URI']);
|
||||||
|
|
||||||
|
if($path_info==PhangoApp\PhaRouter\Config::$base_url) {
|
||||||
|
|
||||||
|
$path_info='';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo \PhangoApp\PhaRouter\get_route($path_info);
|
echo \PhangoApp\PhaRouter\get_route($path_info);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue