Call model from MY_Controller - 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: Call model from MY_Controller (/showthread.php?tid=68211) |
Call model from MY_Controller - muuucho - 06-10-2017 Is it OK to call a model from MY_Controller? This means that all controllers can call this model. Is this OK or am I breaking a "heavy rule" here? RE: Call model from MY_Controller - skunkbad - 06-10-2017 There are no "heavy rules". CodeIgniter is built to give you shortcuts on your PHP journey, not to enslave you and make you do things a certain way. RE: Call model from MY_Controller - muuucho - 06-12-2017 Cheers to that! |