![]() |
How on earth do I rename the default 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: How on earth do I rename the default controller!? (/showthread.php?tid=47458) |
How on earth do I rename the default controller!? - El Forum - 12-09-2011 [eluser]Sven Delle[/eluser] Hi, I'm trying to rename the default controller (welcome) to site (site), as I'd like to not welcome anyone before they log in. But how on earth do I do this!? It seem a true nightmare. What I do: 1. I change the default controller in routes.php: from: $route['default_controller'] = "welcome"; to: $route['default_controller'] = "site"; Then I change the name of (controller) welcome.php to site.php, and the name of the class itself from Welcome to Site. I also correct the view to load from 'welcome_message' to 'site' (will the same name for a view and a controller clash?). Can someone shed some light on this? |