function init(){
parent::init();
$f = $this->add('Form');
$f->addField('dropdown', 'Label:')->setModel('User');
}
So this code will output a dropdown list populated by the values in the table asosiated with the model User, but the values will be does of the name field in the model.
Is there a way to use another field of the model to populate this?