![]() |
extends MY_Model call twice the __contruct - 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: extends MY_Model call twice the __contruct (/showthread.php?tid=58973) |
extends MY_Model call twice the __contruct - El Forum - 08-09-2013 [eluser]Unknown[/eluser] I have a problem when i try to extends my_model it's call twice the first time is called without parameters, here is the code MY_Model Code: class MY_Model extends CI_Model{ and Prueba_mod Code: class Prueba_mod extends MY_Model{ i would like to understand this behaviour and control it to extends MY_Model and just call once the constructor |