![]() |
M.D array from model 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: M.D array from model to view (/showthread.php?tid=53005) |
M.D array from model to view - El Forum - 07-06-2012 [eluser]Unknown[/eluser] m returning array from model..and want to loop it in the view...here is my code...it works perfect in controller..and plz help me in passing same value to the VIEW Code: public function gets() controller Code: public function login() view: Code: foreach($g as $h); thanks M.D array from model to view - El Forum - 07-06-2012 [eluser]InsiteFX[/eluser] Maybe take the ; off the end of the foreach loop in your view. Code: <?php foreach ($g as $h): ?> |