I have set up a controller called links, i have the routes to several pages being directed to this controller and within this controller I have a number of different functions for accessing different parts of the page through ajax calls. Here is a sample from my routes config:
$route['games'] = "links";
$route['games/ajax_pager'] = "links/ajax_pager";
$route['games/ajax_dbr/(:any)'] = "links/ajax_dbr/$1";
$route['games/linkinfo/(:num)'] = "links/linkinfo/$1";
$route['games/linkobj/(:num)'] = "links/linkobj/$1";
$route['links'] = "links";
$route['links/ajax_pager'] = "links/ajax_pager";
$route['links/ajax_dbr/(:any)'] = "links/ajax_dbr/$1";
$route['links/linkinfo/(:num)'] = "links/linkinfo/$1";
what I would like to do now is have a variable from the second segment of the url passed to the index function if it doesnt match up with any of the functions routed to above. So something like this:
$route['games/(:any)'] = "links/$1";
but this isn't working is there any way to do this without creating a new function. Hope this is clear - please let me know if any clarification is required. An dthanks in advance for any help.