Welcome Guest, Not a member yet? Register   Sign In
Cannot redeclare class - Controller issues
#1

[eluser]MEM[/eluser]
Code:
class Domains extends MY_Controller {
    
        public function Domains() {
    
        parent::Controller();    
    }


Code:
class MY_Controller extends Controller {
    
        public function __construct()
        {
        parent::Controller();
        }
    }

I get: Cannot redeclare class Domains


I have the exact same structure on my Models, and it works there.


Any clue why this is happening?


Thanks in advance,
MEM
#2

[eluser]MEM[/eluser]
Ehehehehe Smile

Having the model and the controller with the same class name. Hence, this issue. Big Grin


* El Forum kills himself!




Theme © iAndrew 2016 - Forum software by © MyBB