![]() |
first page without controller - 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: first page without controller (/showthread.php?tid=15957) |
first page without controller - El Forum - 02-20-2009 [eluser]Mitja B.[/eluser] Is it possible to make first page without controller that url will be just http://www.domain.com and not http://www.domain.com/controller first page without controller - El Forum - 02-20-2009 [eluser]xwero[/eluser] This is what the default controller is for. http://www.domain.com is the same as http://www.domain.com/default_controller/index. first page without controller - El Forum - 02-20-2009 [eluser]Mitja B.[/eluser] Thx will try first page without controller - El Forum - 02-20-2009 [eluser]TheFuzzy0ne[/eluser] You will need to ensure your default controller has been set correctly in ./system/application/config/config.php. Here's what mine looks like: Code: $config['default_controller'] = "homepage"; My default controller is called 'homepage', which means that the router looks for a file named "homepage.php" if no controller is specified. If you are wanting index.php to be your default controller, then you'll need to set you default controller to "index". |