CodeIgniter Forums
User guide addition to the Models page - 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: User guide addition to the Models page (/showthread.php?tid=6856)



User guide addition to the Models page - El Forum - 03-14-2008

[eluser]xwero[/eluser]
After this tread from dtrenz i think the models page should have a similar statement as on the controller page namely :
Quote:If you intend to use a constructor in any of your Models, you MUST place the following line of code in it:
Code:
parent::Model();

The reason this line is necessary is because your local constructor will be overriding the one in the parent model class so we need to manually call it.