CodeIgniter Forums
How to fix routing in CI 3.2 - 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: How to fix routing in CI 3.2 (/showthread.php?tid=75902)



How to fix routing in CI 3.2 - Saeed_Sikandar - 03-28-2020

Hey I'm new to CodeIgniter and actually let me show you where I am stuck!, 
so here's the URL I requested 
  http://192.168.0.103:8080/Concept/admins/order .
admins is controller and order is method of that controller but it does'nt work like it should work 

here is my Admins Controller,route.php,some screenshot of my webpage:




RE: How to fix routing in CI 3.2 - jreklund - 03-28-2020

You can't use (:any) like that, you need to include the complete url e.g. admin/order/(:any)

There should only be one (:any) rule, and should be the last one.


RE: How to fix routing in CI 3.2 - Saeed_Sikandar - 03-28-2020

(03-28-2020, 06:02 AM)jreklund Wrote: You can't use (:any) like that, you need to include the complete url e.g. admin/order/(:any)

There should only be one (:any) rule, and should be the last one.

Ohh let me fix it Angel