default controller eror?? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: default controller eror?? (/showthread.php?tid=52429) |
default controller eror?? - El Forum - 06-10-2012 [eluser]anyamanggar[/eluser] web.php Code: <?php about_view.php Code: <?php $this->load->view('header_view'); ?> header_view.php Code: <div id="logo"> the problem is, if make default controller with my controller web, and when i click menu for about i have got eror Code: 404 Page Not Found what wrong with that? can anybody know this? please help me, i am nubie for htacess Code: <IfModule mod_rewrite.c> config: $config['base_url'] = 'http://localhost/mitra/'; $config['index_page'] = ''; $config['uri_protocol'] = 'AUTO'; $config['url_suffix'] = '.html'; route : $route['default_controller'] = "web"; $route['404_override'] = ''; default controller eror?? - El Forum - 06-10-2012 [eluser]InsiteFX[/eluser] Thats because you are missing the controller in your anchor tag Code: // anchor('controller/function') default controller eror?? - El Forum - 06-11-2012 [eluser]anyamanggar[/eluser] Thank You default controller eror?? - El Forum - 06-11-2012 [eluser]nebulom[/eluser] You can also add a route Code: $route['contact'] = 'web/contact'; |