Welcome Guest, Not a member yet? Register   Sign In
Can't get routes to work how I want it to
#3

[eluser]ElliotReevey[/eluser]
Code:
$route['campaign/newcampaign'] = 'campaign/newcampaign';
$route['campaign/(:any)'] = 'campaign/viewcampaign';

The above works, however I was hoping to achieve this by using a regular expression which says if NOT equal to newcampaign therefore I wouldn't have to add a new line for every other view that I created from the campaign controller.


Messages In This Thread
Can't get routes to work how I want it to - by El Forum - 11-03-2010, 02:46 PM
Can't get routes to work how I want it to - by El Forum - 11-03-2010, 03:40 PM
Can't get routes to work how I want it to - by El Forum - 11-03-2010, 03:59 PM
Can't get routes to work how I want it to - by El Forum - 11-04-2010, 04:07 AM
Can't get routes to work how I want it to - by El Forum - 11-04-2010, 04:10 AM
Can't get routes to work how I want it to - by El Forum - 11-04-2010, 06:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB