![]() |
Model overwriting other model data - 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: Model overwriting other model data (/showthread.php?tid=13931) |
Model overwriting other model data - El Forum - 12-11-2008 [eluser]Flipside Tech[/eluser] I have some total weirdness happening with models that share the same member name. Example: Code: class Category_model extends Model { Ok, simple right. Now in the controller: Code: $this->post_model->setURI("post_uri"); Weird. Help. Model overwriting other model data - El Forum - 12-11-2008 [eluser]Flipside Tech[/eluser] Fixed it by changing the following in the CodeIgniter Model class: Code: //$this->_assign_libraries( (method_exists($this, '__get') OR method_exists($this, '__set')) ? FALSE : TRUE ); Can someone tell me why that fixed it? |