Welcome Guest, Not a member yet? Register   Sign In
Extanding the CI_Controller ot working
#15

[eluser]PhilTem[/eluser]
[quote author="InsiteFX" date="1353511800"]You only need the autoload in the config if you extend more Controllers from the MY_Controller.

Where I have two other ones Admin_Controller and Public_Controller

Code:
application/core/
-- MY_Controller extends CI_Controller
-- Admin_Controller extends MY_Controller
-- Public_Controller extends MY_Controller

Then you need the config autoload or it will not see the other Controllers.
[/quote]

Do you really need to do this? I have some hierarchical controllers and loading them works fine
Code:
application/core/
  class MY_Controller extends MX_Controller {}
  class Public_Controller extends MY_Controller {}
  class Authenticated_Controller extends Public_Controller {}
  class Admin_Controller extends Authenticated_Controller {}
  class HMVC_Controller extends MX_Controller {}
  class AJAX_Controller extends MY_Controller {}

Or does it work for me because I'm using HMVC?


Messages In This Thread
Extanding the CI_Controller ot working - by El Forum - 11-20-2012, 03:33 PM
Extanding the CI_Controller ot working - by El Forum - 11-20-2012, 04:40 PM
Extanding the CI_Controller ot working - by El Forum - 11-20-2012, 09:43 PM
Extanding the CI_Controller ot working - by El Forum - 11-20-2012, 09:58 PM
Extanding the CI_Controller ot working - by El Forum - 11-20-2012, 10:26 PM
Extanding the CI_Controller ot working - by El Forum - 11-20-2012, 11:13 PM
Extanding the CI_Controller ot working - by El Forum - 11-20-2012, 11:27 PM
Extanding the CI_Controller ot working - by El Forum - 11-20-2012, 11:53 PM
Extanding the CI_Controller ot working - by El Forum - 11-20-2012, 11:56 PM
Extanding the CI_Controller ot working - by El Forum - 11-21-2012, 12:22 AM
Extanding the CI_Controller ot working - by El Forum - 11-21-2012, 06:02 AM
Extanding the CI_Controller ot working - by El Forum - 11-21-2012, 08:11 AM
Extanding the CI_Controller ot working - by El Forum - 11-21-2012, 08:30 AM
Extanding the CI_Controller ot working - by El Forum - 11-21-2012, 09:06 AM
Extanding the CI_Controller ot working - by El Forum - 11-21-2012, 11:01 AM
Extanding the CI_Controller ot working - by El Forum - 11-21-2012, 11:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB