Codeigniter custom route and parameters passed via url. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: Codeigniter custom route and parameters passed via url. (/showthread.php?tid=68229) |
Codeigniter custom route and parameters passed via url. - joe_foxx - 06-13-2017 Hello guys, I have a problem with parameter passed to controller function: PHP Code: <?php Now in routes.php I have following: PHP Code: $route['login'] = 'app/login'; The problem is that when I will visit 'app/login/err_not_allowed' the $data array is filled properly with values but when i visit 'login/err_not_allowed' the array is empty and i get error that variable doesn't exist and is undefined. RE: Codeigniter custom route and parameters passed via url. - InsiteFX - 06-13-2017 Your missing the closing quote on the last route. |