Welcome Guest, Not a member yet? Register   Sign In
Routing help needed
#7

[eluser]Tpojka[/eluser]
[quote author="Naoshad" date="1399573591"]Thanks a lot... it worked like a charm Smile

Thank you very much. [/quote]
I am glad if I was helpfull to you.

If you have route rule with wild card key (:any), you would need to set all other routes before that.
I mentioned that before. Any specific URL should be called has to be assigned to it's concrete value trough routes.php file.
Example:
In URLs
Code:
www.example.com/controller
www.example.com/controller/method
www.example.com/controller/method/argument
If in routes.php you have:
Code:
$route['(:any)'] = 'controller';
[/code]
any of those links will call first one to be executed because
wild card :any can mean anything of that after base_url() regardless segments or any other specific characters.


Messages In This Thread
Routing help needed - by El Forum - 05-08-2014, 03:21 AM
Routing help needed - by El Forum - 05-08-2014, 03:51 AM
Routing help needed - by El Forum - 05-08-2014, 04:03 AM
Routing help needed - by El Forum - 05-08-2014, 04:17 AM
Routing help needed - by El Forum - 05-08-2014, 11:26 AM
Routing help needed - by El Forum - 05-08-2014, 11:39 AM
Routing help needed - by El Forum - 05-08-2014, 11:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB