Welcome Guest, Not a member yet? Register   Sign In
How on earth do I rename the default controller!?
#1

[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?




Theme © iAndrew 2016 - Forum software by © MyBB