Welcome Guest, Not a member yet? Register   Sign In
Is it possible to pass a variable from MODEL to CONTROLLER?!
#3

[eluser]developer10[/eluser]
[quote author="beckyftw" date="1260689784"]You could create a function that returned the value you want to pass such as:
Code:
function varToPass() {
    return $varToPass;
}
then access it like
Code:
$this->your_model->varToPass();
I don't know if it's possible pass it so you can access it like a normal variable though :/[/quote]

that variable should contain the value mentioned above (from the previous model function).
if i send it from a new function, it won't hold the value i need (num_rows BEFORE applying the limit) unless
i run a similar query in that new function as well.

so, i need the variable sent from the same function.

thanks anyway!


Messages In This Thread
Is it possible to pass a variable from MODEL to CONTROLLER?! - by El Forum - 12-12-2009, 07:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB