Welcome Guest, Not a member yet? Register   Sign In
Passing parameters from a view to a model
#3

[eluser]Unknown[/eluser]
Thanks for your answer. I still don't understand it complety though...

How do I tell the controller what value to pass to field1 from the view?

Say I have a for loop in my view
Code:
for($i=1; $i<123;$i++){
$dada = $this->db->query('SELECT * FROM ijij Where id = ' . $i);
//Thats what I want to do from the controller/model
}
how would I do that from the controller? Is this a job for the helpers or...?


Messages In This Thread
Passing parameters from a view to a model - by El Forum - 06-03-2008, 11:40 AM
Passing parameters from a view to a model - by El Forum - 06-03-2008, 01:56 PM
Passing parameters from a view to a model - by El Forum - 06-04-2008, 07:59 AM
Passing parameters from a view to a model - by El Forum - 06-04-2008, 09:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB