03-23-2016, 08:32 PM
Hello,
Thank you for sharing ,
In the code has some problems when applied .
Eg: base ( ' auth / edit_user / 1 ' ) --- > real url : localhost / authedit-user
not "/" and parameter
I think you should add a few lines of code :
line 54 :
and
above : header('Location: '...........);
Thank you for sharing ,
In the code has some problems when applied .
Eg: base ( ' auth / edit_user / 1 ' ) --- > real url : localhost / authedit-user
not "/" and parameter
I think you should add a few lines of code :
line 54 :
Code:
$url .= str_replace( '_' , '-' , $segments[0] . '/');
and
Code:
if (count($segments) > 2)
{
for ($i = 2; $i < count($segments); $i++)
{
$url .= '/'.$segments[$i];
}
}