Welcome Guest, Not a member yet? Register   Sign In
Passing arguments from view
#1

[eluser]donaldpcook[/eluser]
Hi all,

I'm new to CI and MVC in general, and I have a simple question.

How would I pass an argument from the view to the controller (which I would then use in the model)? For example, I am trying to use a function in my model to query the database. I only want it to pull certain data (by using the argument in the WHERE of the active record in my model function) determined by what I request in my view, instead of running a foreach through all of the records in the database.

Is there a proper MVC way of doing this?

Thanks a lot!


Messages In This Thread
Passing arguments from view - by El Forum - 11-03-2009, 08:50 AM
Passing arguments from view - by El Forum - 11-03-2009, 08:54 AM
Passing arguments from view - by El Forum - 11-03-2009, 09:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB