Welcome Guest, Not a member yet? Register   Sign In
DB Query issues
#6

[eluser]BravoAlpha[/eluser]
[quote author="stevefink" date="1187752934"]Is there a reason $data needs to be pushed in versus $photos?[/quote]
I believe that Seppo is just pointing out that you're not passing an associative array. ($data is just commonly used.)

http://ellislab.com/codeigniter/user-gui...oader.html
Quote:$this->load->view('file_name', $data, true/false)
...
The second optional parameter can take an associative array or an object as input, which it runs through the PHP extract function to convert to variables that can be used in your view files. Again, read the Views page to learn how this might be useful.


Messages In This Thread
DB Query issues - by El Forum - 08-21-2007, 04:03 PM
DB Query issues - by El Forum - 08-21-2007, 04:13 PM
DB Query issues - by El Forum - 08-21-2007, 04:22 PM
DB Query issues - by El Forum - 08-21-2007, 04:27 PM
DB Query issues - by El Forum - 08-21-2007, 04:29 PM
DB Query issues - by El Forum - 08-21-2007, 04:30 PM
DB Query issues - by El Forum - 08-21-2007, 05:20 PM
DB Query issues - by El Forum - 08-21-2007, 05:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB