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

[eluser]atno[/eluser]
[quote author="therealmaloy" date="1231101929"]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.[/quote]

Hi therealmaloy,

Thanks it's working as it should now.
how can i make getFileList() private inside the class and how would i call it to run?

Thanks,
Atno


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