![]() |
controller foreach error - 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: controller foreach error (/showthread.php?tid=33170) |
controller foreach error - El Forum - 08-17-2010 [eluser]Corbee[/eluser] I was trying to get the controller to show a listed dropdown My model seems to be okay, but when trying to display the drop down in the controller I kept getting an error in the foreach What should I do? model Code: function getcarmodel($brand) controller Code: function ajaxmodel() controller foreach error - El Forum - 08-17-2010 [eluser]stuffradio[/eluser] It would help if you told us what the error was. controller foreach error - El Forum - 08-17-2010 [eluser]Corbee[/eluser] the debugger said the line containing the foreach in the controller is getting an error controller foreach error - El Forum - 08-17-2010 [eluser]Corbee[/eluser] I think found the error, thanks for the help. |