djjjozsi;10972013 wrote:echo $form['catcher_id']
if i'm not mistaken you have ids in a comma separated list?
Then you should use explode() to make that list into array first.
however this works its not the best way to store id numbers, according to the database normalisation forms.
the line aboce gives me a drop down list and get defined in a base class:
abstract class BaseLpmServiceForm extends BaseFormPropel
{
public function setup()
{
$this->setWidgets(array(
'id' => new sfWidgetFormInputHidden(),
'name' => new sfWidgetFormInputText(),
'wap_home' => new sfWidgetFormInputText(),
'call_center_number' => new sfWidgetFormInputText(),
[COLOR="Red"] 'catcher_id' => new sfWidgetFormPropelChoice(array('model' => 'LpmCatcher', 'add_empty' => false)),[/COLOR]
'price_description' => new sfWidgetFormInputText(),
'logo' => new sfWidgetFormInputText(),
'invalid_msisdn_text' => new sfWidgetFormInputText(),
'terms_and_conditions' => new sfWidgetFormInputText(),
'service_code' => new sfWidgetFormInputText(),
));