CodeIgniter Forums
routes in ci shows white blank screen - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: routes in ci shows white blank screen (/showthread.php?tid=76034)



routes in ci shows white blank screen - durairaj - 04-08-2020

$route[ 'courses' ] = 'courses';
    $route[ 'courses/(:any)' ] = 'university/courses/$1';
    above open  on project/courses/new
    but not open project/courses  will show white blank screen;
   
    $route[ 'courses' ] = 'courses';
    $route[ 'Courses/(:any)' ] = 'university/courses/$1';
   
    ```this code  will open both url,```
   
    why  this happened


RE: routes in ci shows white blank screen - rolly - 04-09-2020

Change, first 

PHP Code:
$route'Courses/(:any)' ] = 'university/courses/$1'
$route'courses' ] = 'courses'