Passing variables from Model to Model in codeigniter

Posted by Craig Ward on Stack Overflow See other posts from Stack Overflow or by Craig Ward
Published on 2010-06-09T08:49:36Z Indexed on 2010/06/09 8:52 UTC
Read the original article Hit count: 178

Filed under:
|
|
|

Hi,

I need to pass a variable to model, that model needs to send another back and use that variable to query a different model.

EG:

I have a product_ID which I send to the product model, From that I find out the supplier_ID. I want to grab that supplier_ID to the supplier model to get the supplier name.

How do you implement this in codeigniter?

© Stack Overflow or respective owner

Related posts about php

Related posts about mvc