$exploded = explode('/', $_SERVER['SCRIPT_NAME']); $page = substr(end($exploded), 0, -4);If someone can explain why I had to do this, or if there is an easier way to do it, please let me know.
Thanks
$exploded = explode('/', $_SERVER['SCRIPT_NAME']); $page = substr(end($exploded), 0, -4);If someone can explain why I had to do this, or if there is an easier way to do it, please let me know.