Welcome Guest, Not a member yet? Register   Sign In
Controllers/Classes not loading...
#4

[eluser]xwero[/eluser]
The default controller is not really a default controller. It is the controller that only gets loaded when the uri has no segments. maybe it should be renamed to landing_controller?

Why do you add the MY_ prefix this looks ugly in the url. If the idea is to create extended controller classes you put them in the MY_controller file. Then they are loaded automagically. Then you create a controller that gets called by the url and extend that controller with a controller from the MY_controller file.
Code:
// MY_controller.php
class Admin extends Controller {}
class Login extends Controller {}
// controller that gets called by a url
class Users extends Admin {}

What is your file structure?


Messages In This Thread
Controllers/Classes not loading... - by El Forum - 12-15-2008, 06:03 AM
Controllers/Classes not loading... - by El Forum - 12-15-2008, 06:06 AM
Controllers/Classes not loading... - by El Forum - 12-15-2008, 06:08 AM
Controllers/Classes not loading... - by El Forum - 12-15-2008, 06:48 AM
Controllers/Classes not loading... - by El Forum - 12-15-2008, 09:26 PM
Controllers/Classes not loading... - by El Forum - 12-15-2008, 11:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB