Welcome Guest, Not a member yet? Register   Sign In
problem passing an array to a view
#1

[eluser]lord_nerevar[/eluser]
Hi all.

in the controller i have $list that is an array with numeric index, and every field is an array too.

for example $list[$i]['name'] in the controller give me the correct field.

I want to print data in the view instead of the controller, but when i pass $list to a view, as explained in the guide, how can i access to the field with a loop? I had to print all the 'name' field of that array but i can't!


Messages In This Thread
problem passing an array to a view - by El Forum - 05-17-2010, 08:47 AM
problem passing an array to a view - by El Forum - 05-17-2010, 09:02 AM
problem passing an array to a view - by El Forum - 05-17-2010, 12:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB