trouble getting drop menu from model |
[eluser]pistolPete[/eluser]
[quote author="trevor2" date="1234745912"]Guess I don't understand how to properly echo $data in the view. Since there should be no looping in the view,...[/quote] Not necessarily, if you don't try to follow the MVC approach too strict, you can of course have loops in your views. Have a look at the user guide: http://ellislab.com/codeigniter/user-gui...views.html [quote author="trevor2" date="1234745912"]... the foreach loop generating the <option> tags would have to be in the controller, but it's not working.[/quote] "It's not working" isn't a good explanation of your problem... be more precise! |
Messages In This Thread |
trouble getting drop menu from model - by El Forum - 02-14-2009, 11:46 PM
trouble getting drop menu from model - by El Forum - 02-15-2009, 01:25 AM
trouble getting drop menu from model - by El Forum - 02-15-2009, 02:20 AM
trouble getting drop menu from model - by El Forum - 02-15-2009, 12:58 PM
trouble getting drop menu from model - by El Forum - 02-15-2009, 01:16 PM
trouble getting drop menu from model - by El Forum - 02-15-2009, 03:41 PM
trouble getting drop menu from model - by El Forum - 02-15-2009, 04:34 PM
trouble getting drop menu from model - by El Forum - 02-16-2009, 06:13 AM
|