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

[eluser]bhbutter123[/eluser]
the way that i have been doing it is by returning an array in my model so that essential here is what my model will setup and return to my controller:

$database_information['data'] = the data from the table;
$database_information['counts'] = various counts from the table you want to use;
$database_information['other'] = any other information you would need;

In your situation I would put that variable you want to pass inside of $database_information['other'];


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



Theme © iAndrew 2016 - Forum software by © MyBB