Welcome Guest, Not a member yet? Register   Sign In
Multiple Core Controllers?
#1

[eluser]chr1831[/eluser]
How can I have multiple core controllers? I am trying to have a portal controller and a default controller for the main pages.

application\core
`-MY_Controller.php
`-MY_Portal_Controller.php

PHP says PHP Fatal error: Class 'MY_Portal_Controller' not found in /path/to/controllers/pages.php

PHP code for extending: class MY_Portal_Controller extends Controller {

Thanks,
Chr1831
#2

[eluser]Buso[/eluser]
CI does not support this, you have to hack it somewhere before the controller is loaded, and load those controllers or set an autoload for them http://php.net/manual/en/function.spl-au...gister.php




Theme © iAndrew 2016 - Forum software by © MyBB