Welcome Guest, Not a member yet? Register   Sign In
how to pass a multidimensional array to a view
#2

[eluser]therealmaloy[/eluser]
atno

$data["retval"] = getFileList('/home/atno/Movies',false);

just try this code, replace the one you had... this ensures that you have a variable that represents your array of files that your view can manipulate.

let us know if this works Smile

note: i would suggest to make your getFileList() function outside your index and just make it private inside your class, i guess it's cleaner and you can reuse it anytime you want inside the class.


Messages In This Thread
how to pass a multidimensional array to a view - by El Forum - 01-04-2009, 05:15 AM
how to pass a multidimensional array to a view - by El Forum - 01-04-2009, 08:45 AM
how to pass a multidimensional array to a view - by El Forum - 01-04-2009, 08:59 AM
how to pass a multidimensional array to a view - by El Forum - 01-04-2009, 01:01 PM
how to pass a multidimensional array to a view - by El Forum - 01-04-2009, 04:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB