Newbie with a query questions. Results not getting passed to view. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Newbie with a query questions. Results not getting passed to view. (/showthread.php?tid=33798) |
Newbie with a query questions. Results not getting passed to view. - El Forum - 09-08-2010 [eluser]ThanksBrah[/eluser] Hola. As stated, the results are not getting passed to my view. here's what I have: Controller: Code: $this->load->model('membership_model'); Model: Code: function search() View: Code: <?php var_dump($organizations); ?> I added var_dump() and the parameter '$organizations' is null giving me a Invalid argument supplied for foreach() error. Can anyone see what I'm doing wrong? Thanks Newbie with a query questions. Results not getting passed to view. - El Forum - 09-08-2010 [eluser]slowgary[/eluser] Your model's search() function doesn't return any data |