Welcome Guest, Not a member yet? Register   Sign In
Change route for root
#11

(This post was last modified: 08-23-2018, 01:16 AM by Pertti.)

_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)
{
    
$this->index($key);

Reply
#12

(This post was last modified: 08-23-2018, 03:34 AM by InsiteFX.)

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 )
Reply
#13

(08-23-2018, 03:33 AM)InsiteFX Wrote: 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.

Still i could not use it
Only htaccess can help me Sad
Reply
#14

OK
My problem has been resolved.
I use $route['(\d+h\d+)$'] = 'whc/info/$1';
Reply




Theme © iAndrew 2016 - Forum software by © MyBB