Change route for root |
_remap should be public.
Also, in the example it will still look for method named 11h11. You can fix it two ways. Via route config: PHP Code: $route['welcome/(:any)'] = 'welcome/index/$1'; Via _remap PHP Code: private function _remap($key)
Sorry about the private I added it after I saw the _ underscore.
This worked fine for us with out index https://www.yoursite.com/value But then it depends if you are using index.php or not in config. index method is the default method called from a controller. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(08-23-2018, 03:33 AM)InsiteFX Wrote: Sorry about the private I added it after I saw the _ underscore. Still i could not use it Only htaccess can help me
OK
My problem has been resolved. I use $route['(\d+h\d+)$'] = 'whc/info/$1'; |
Welcome Guest, Not a member yet? Register Sign In |