error explanation - 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: error explanation (/showthread.php?tid=57817) |
error explanation - El Forum - 04-13-2013 [eluser]boytun[/eluser] Hello friends. I'm using in my application HMVC architecture, and I get this errors wich I can understand . I try to load my module in the mvc view. this the code of the module controller(widg_html.php): Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); and this is how I call the module in the view: Code: <?php Quote:A PHP Error was encountered Please can some Help me? Thanks in advance error explanation - El Forum - 04-13-2013 [eluser]Harold Villacorte[/eluser] It looks like a typo. Module controllers should extend MX_Controller. In the model make sure that the database class is loaded and try something like this maybe: Code: $query = $this->db |