Discussion – Lesson 3 - Router
BackComments
4 messages from 4 displayed.
//= Settings::TRACKING_CODE_B ?> //= Settings::TRACKING_CODE ?>
Comments
How would this work if your MVC was in a sub-directory? domain.com/mvc/controller/method/params etc
Thanks
use this code it check if script running in localhost than remove first element from url array that is your project folder name
if($_SERVER['REMOTE_ADDR']=='127.0.0.1' or
$_SERVER['REMOTE_ADDR']=='::1' )
{
$parsedUrl = array_slice($parsedUrl,1);
}
4 messages from 4 displayed.