Welcome Guest, Not a member yet? Register   Sign In
passing value from view to controller to model

[eluser]new kid[/eluser]
i want to pass a single value from view through href to a function in controller and from there to model how ??

please help

class controller extends Controller
    function controller()

    function method($var)

Not quite sure exactly what your asking.

[eluser]new kid[/eluser]
thanks and how to get this in model

[eluser]new kid[/eluser]
wat i want to do is pass a value through href to a function in controller and pass it to model from there

ineed the value in the model to use in select



help please

You can pass variables to the functions in your model the same way you do any other function.

[eluser]Colin Williams[/eluser]
new kid probably doesn't know how functions work.

This should help you: http://ellislab.com/codeigniter/user-gui...uting.html

Theme © iAndrew 2016 - Forum software by © MyBB