Welcome Guest, Not a member yet? Register   Sign In
problem with routes.php
#3

[eluser]Aken[/eluser]
John's code might work, but you should always define the most specific routes first, so they are picked up in the proper order.
Code:
$route['members/contact/(:any)'] = 'contact/$1';
$route['members/contact'] = 'contact';

If you don't have any other functions in your contact controller, and will only need to use that controller from one of the two URLs mentioned, you can avoid the :any part.
Code:
$route['members/contact'] = 'contact';


Messages In This Thread
problem with routes.php - by El Forum - 07-17-2011, 08:40 PM
problem with routes.php - by El Forum - 07-17-2011, 08:59 PM
problem with routes.php - by El Forum - 07-17-2011, 09:21 PM
problem with routes.php - by El Forum - 07-18-2011, 08:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB