Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Codeigniter SQL Re: Codeigniter SQL

#96762
ShawnC
Member

Without all the code it’s hard to pinpoint the exact problem,

but from what I’m seeing, you are returning a Array and Echoing a Object unless I’m not seeing something,

Can you do a var_dump inside of your View file, you may also want to var_dump your controller before you load your view file.

Another helpful feature I find when dealing with MVC patterns and variables is to dump the defined variables with

php’s function get_defined_vars();



var_dump ( $row );
var_dump ( get_defined_vars() );

Shawn Crigger
S-Vizion Web Development’s
Twitter : @svizion
http://blog.s-vizion.com