Call a model from another model |
[eluser]boltsabre[/eluser]
Depending on the application you may want to have a model extend another model, there is absolutely nothing wrong with that in my opinion. A classic example is having a base "product" model and from their having several models extending it, perhaps a "buy_product", a "sell_product", a "admin_panel_for_product", a "product_inventory", etc. Your "base" product model would contain all the universal "product" methods that the other child models need. The above mentioned scenario is no different than having a "MY_Model", except it's on a bit more of a micro/specific scale. Quote:How do I?Have you tried looking for the answer on a search engine, this has been answered literally 100's of times already. Try this: https://www.google.com/search?q=codeigni...ther+model If you have any problems please next time post your code that is causing the problem and describe the error that you are getting. |
Messages In This Thread |
Call a model from another model - by El Forum - 06-09-2013, 07:20 AM
Call a model from another model - by El Forum - 06-09-2013, 03:31 PM
Call a model from another model - by El Forum - 06-11-2013, 05:01 AM
Call a model from another model - by El Forum - 06-13-2013, 01:35 AM
|