![]() |
Using a model from another one - 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: Using a model from another one (/showthread.php?tid=2954) |
Using a model from another one - El Forum - 09-01-2007 [eluser]camille roux[/eluser] hello, I'd like to use a model from another one. I saw that it's not possible to load a model in another model. Is there a way to do what I want? Is it ugly? Thank you Using a model from another one - El Forum - 09-01-2007 [eluser]esra[/eluser] On the wiki, there is an article and some code for using nested sets by Thunder. Take a look at the example code to see how the category model was extended from the nested sets model. The category model basically inheirts the nested sets model methods and either overloads those nested sets model methods and/or includes new methods. |