views not loading on no records - 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: views not loading on no records (/showthread.php?tid=9380) |
views not loading on no records - El Forum - 06-23-2008 [eluser]Chris Williams[/eluser] My views will load when they can pull records, but only one will load when the query finds zero records. My Control: Code: function index() My Model: Code: function getRecentPosts($user_name) Header will not load and home_view stops just before displaying records. views not loading on no records - El Forum - 06-23-2008 [eluser]Chris Williams[/eluser] Found it! Code: <?php if ($query != false): ?> |