wpmvc: how to populate belongs_to_dropdown?
-
Hi,
i’m reading into the WPMVC-plugin.
i managed to generate some stuff for my plugin and now im trying to create forms.
i have Towns and Countries, a Town belongs to a Country.
So i want to place a dropdown for this, but i can’t figure out how.
In the example-plugin there is something like this:<?php echo $this->form->belongs_to_dropdown('Country', $countries, array('style' => 'width: 200px;', 'empty' => true)); ?>
i guess $countries has to be an array, but i can’t figure out where the array gets its values.
can someone hint me to the point and method to populate $countries?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wpmvc: how to populate belongs_to_dropdown?’ is closed to new replies.