CodeIgniter Forums

Full Version: Passing variable issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]MrCrozer[/eluser]
I'm woundering, how this will happen ?
I want to pass the $_GET value from a view to a model, so i can check the db for that item for example.
How to do such a thing, or how to do something like it ?

El Forum

[eluser]toopay[/eluser]
Code:
// eg : url = http://yoursite.com/controllername?foo=bar, then in controllername's index function,
// you can fetch the $_GET var by...
$this->input->get('foo');