Hi
Been using CI on and off for almost a year now. Like a lot of the features but I still find myself puzzeled quite often.
I have a loop in a view:
foreach($dada->result() as $didi):
In here I would like to make a call to a database (through the controller and model) but how do I pass the current $didi->id to the model?
(Could ofcourse just $this->db->query(‘SELECT * FROM dudu WHERE id = ’ . $didi->id) directly but…)
endforeach;
Can anyone help?
