![]() |
Calling multiple header/footer template and setting in route - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Calling multiple header/footer template and setting in route (/showthread.php?tid=69437) |
Calling multiple header/footer template and setting in route - chized - 11-22-2017 Hello everyone I am new to codeigniter and want to use it for a fairly large project. I intend to use two different bootstrap template. The first one is working but I don't understand why the second is'nt. below is the controller code PHP Code: ?php Quote:$route['default_controller'] = 'pages/view'; RE: Calling multiple header/footer template and setting in route - php_rocs - 11-22-2017 @ chized Are you receiving any error messages? RE: Calling multiple header/footer template and setting in route - php_rocs - 11-22-2017 In your second function. The if condition. Should it be checking for 'iviews/ipages/' instead of 'views/ipages/'? There seems to be a discrepancy between the function and the routes. RE: Calling multiple header/footer template and setting in route - natanfelles - 11-22-2017 Try change it: Quote:$route['ipages/(:any)'] = 'ipages/iview/$1'; to it: Quote:$route['ipages/(:any)'] = 'pages/iview/$1'; https://codeigniter.com/userguide3/general/routing.html#examples |