hi,
I have build an adv module which have its own controller, now it seem like i can't get the url segment work, as long as i put any additional parameter
http://domain/fuel/module/parameter , it will just redirect to 404 error page.
my suspect is the route setting for the module, but i already added
$route[FUEL_ROUTE.'appt/calendar/(.*)'] = APPT_FOLDER.'/calendar/$1';
can admin help on this ?
Comments
function calendar($param = NULL){...
And your route (without constant variables) is:
$route['fuel/appt/calendar/(.+)'] = 'appt/calendar/$1';
i have these in my route to take care of it
$user_controllers = array('standard','rating','request'); foreach($user_controllers as $c) { $route[FUEL_ROUTE.'appt/'.$c] = FUEL_FOLDER.'/module'; $route[FUEL_ROUTE.'appt/'.$c.'/(.*)'] = FUEL_FOLDER.'/module/$1'; }
but for this module , i have some stand alone feature to display, so i created calendar controller in this appt adv module and added this in route
$route[FUEL_ROUTE.'appt/calendar'] = APPT_FOLDER.'/calendar';
so now calendar controller is working fine by itself but not with additional parameter
And your route (without constant variables) is:
$route['fuel/appt/calendar/(.+)'] = 'appt/calendar/$1'; <---- this is correct