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 $index_file='index.php/';
|
||||
|
||||
}
|
||||
|
||||
/*Examples
|
||||
|
|
@ -177,7 +179,7 @@ class Url {
|
|||
|
||||
static public function make_url($module, $script='', $args=[]) {
|
||||
|
||||
$url='/'.$module;
|
||||
$url=$module;
|
||||
|
||||
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