![]() |
Controller Recieving Errors - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Controller Recieving Errors (/showthread.php?tid=50961) |
Controller Recieving Errors - El Forum - 04-15-2012 [eluser]xtremer360[/eluser] I have the controller itself loading properly however I don't think I have my controller written correctly according to the documentation for the wiredesignz moduler extentions codeigniter framework plugin. Reason I'm saying I might not have written it properly is because I'm receiving plenty of errors. Errors: Code: A PHP Error was encountered https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home Here's my controller: Code: <?php Controller Recieving Errors - El Forum - 04-15-2012 [eluser]Samus[/eluser] Hmm only thing I can see is you have no $data property. Yet you're trying to use one '$this->data' ? You're also getting an error from your parent controller, so check that too. Controller Recieving Errors - El Forum - 04-15-2012 [eluser]xtremer360[/eluser] Parent controller? Controller Recieving Errors - El Forum - 04-15-2012 [eluser]Samus[/eluser] [quote author="xtremer360" date="1334520368"]Parent controller?[/quote] You're extending MX_Controller, which is the Quotes controller's parent.. Controller Recieving Errors - El Forum - 04-15-2012 [eluser]xtremer360[/eluser] Have you used this plugin before? Controller Recieving Errors - El Forum - 04-15-2012 [eluser]xtremer360[/eluser] Hmm that's odd if I change MX to CI it works just fine. I thought on the docs for this plugin that you are supposed to use MX controller though. Controller Recieving Errors - El Forum - 04-15-2012 [eluser]Samus[/eluser] [quote author="xtremer360" date="1334520696"]Hmm that's odd if I change MX to CI it works just fine. I thought on the docs for this plugin that you are supposed to use MX controller though. [/quote] If you wanted to extend the default functionality of controllers you can create a controller in applications/core and give it a class name of 'MY_Controller'. But if you just need normal functionality, CI_ is what you'd use. Controller Recieving Errors - El Forum - 04-15-2012 [eluser]xtremer360[/eluser] Okay thank you for the clarification. |