Welcome Guest, Not a member yet? Register   Sign In
Default Controller Issue
#5

[eluser]Jelmer[/eluser]
I have a similar setup and I have in routes.php:
Code:
$route[':any'] = 'page';

In my controller I do the processing using a _remap() function:
Code:
function _remap()
{
    $this->index($this->uri->uri_string());
}

This is how I solved it over 2 years ago, I'm not sure anymore why I did it like this and not for instance using $route[':any'] = 'page/index'; - but this works for me, and I can remember similar problems while first writing this setup.


Messages In This Thread
Default Controller Issue - by El Forum - 04-14-2010, 08:14 AM
Default Controller Issue - by El Forum - 04-14-2010, 08:41 AM
Default Controller Issue - by El Forum - 04-14-2010, 08:43 AM
Default Controller Issue - by El Forum - 04-14-2010, 08:54 AM
Default Controller Issue - by El Forum - 04-14-2010, 09:00 AM
Default Controller Issue - by El Forum - 04-14-2010, 09:07 AM
Default Controller Issue - by El Forum - 06-28-2010, 03:07 AM
Default Controller Issue - by El Forum - 06-29-2010, 06:56 AM
Default Controller Issue - by El Forum - 06-29-2010, 04:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB