MVC to HMVC error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: MVC to HMVC error (/showthread.php?tid=62103) |
MVC to HMVC error - tomop - 06-09-2015 Hi guys, I've created simple registration and login forms connected with database on my computer (using WAMP). It worked fine with MVC, I could register, login, logout etc. Now I'm starting to work with HMVC, using CI 3.0 and proper version of HMVC extension. I've created two modules - 'site' and 'login'. This is a part of my site controller: Code: <?php and this is my is_logged_in function located in a login controller: Code: function is_logged_in() the problem is that when I Log-In, I get an error message "Unable to locate the specified class: Session.php". If I comment-out Code: modules::run('login/is_logged_in'); If someone could help me somehow, I'd be very thankful RE: MVC to HMVC error - InsiteFX - 06-09-2015 You need to extend the MX_Controller. PHP Code: class Site extends MX_Controller { RE: MVC to HMVC error - tomop - 06-10-2015 (06-09-2015, 10:50 PM)InsiteFX Wrote: You need to extend the MX_Controller. Thanks a lot, solved. |