Fix in urls for use mod_rewrite for hide index.php
This commit is contained in:
parent
ba301238d4
commit
be2968143a
1 changed files with 5 additions and 3 deletions
|
|
@ -13,6 +13,8 @@ class Config {
|
||||||
|
|
||||||
static public $data=[];
|
static public $data=[];
|
||||||
|
|
||||||
|
static public $index_file='index.php/';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Examples
|
/*Examples
|
||||||
|
|
@ -176,8 +178,8 @@ function filter_path($path_info) {
|
||||||
class Url {
|
class Url {
|
||||||
|
|
||||||
static public function make_url($module, $script='', $args=[]) {
|
static public function make_url($module, $script='', $args=[]) {
|
||||||
|
|
||||||
$url='/'.$module;
|
$url=$module;
|
||||||
|
|
||||||
if($script!='') {
|
if($script!='') {
|
||||||
|
|
||||||
|
|
@ -191,7 +193,7 @@ class Url {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Config::$base_url.'index.php'.$url;
|
return Config::$base_url.Config::$index_file.$url;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue