Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Form Ajax
#4

[eluser]spfortier[/eluser]
You could create a "get" function in your model and set the private variable to whatever it is you want to pass to the controller, like this:

Code:
private $test_var;

public function getTestVar() {return $this->test_var;}

Then in your controller:

Code:
$test_var = $this->user_model->getTestVar();


Messages In This Thread
Codeigniter Form Ajax - by El Forum - 10-02-2012, 09:10 PM
Codeigniter Form Ajax - by El Forum - 10-02-2012, 09:34 PM
Codeigniter Form Ajax - by El Forum - 10-02-2012, 09:47 PM
Codeigniter Form Ajax - by El Forum - 10-03-2012, 04:08 PM
Codeigniter Form Ajax - by El Forum - 10-03-2012, 05:44 PM
Codeigniter Form Ajax - by El Forum - 10-03-2012, 06:13 PM
Codeigniter Form Ajax - by El Forum - 10-03-2012, 06:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB