Welcome Guest, Not a member yet? Register   Sign In
Controller is not passing data to a view. Any Ideas?
#2

[eluser]jalalski[/eluser]
You don't use the $data variable directly, you use what it contains. e.g.

$data['name'] = 'John';
$data['age'] = 42;

and in the view:

echo $name;
echo $age;


Messages In This Thread
Controller is not passing data to a view. Any Ideas? - by El Forum - 04-04-2009, 10:17 AM
Controller is not passing data to a view. Any Ideas? - by El Forum - 04-04-2009, 11:11 AM
Controller is not passing data to a view. Any Ideas? - by El Forum - 04-04-2009, 11:18 AM
Controller is not passing data to a view. Any Ideas? - by El Forum - 04-04-2009, 11:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB