• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.