/** * Configures the current widget. * * Available options details in * http://www.symfony-project.org/plugins/sfDependentSelectPlugin * * @param array $options An array of options * @param array $attributes An array of default HTML attributes * * @see sfWidgetForm */ protected function configure($options = array(), $attributes = array()) { $this->addRequiredOption('model'); $this->addOption('method', '__toString'); $this->addOption('key_method', 'getId'); $this->addOption('ref_method', ''); $this->addOption('order_by', ''); parent::configure($options, $attributes); }
/** * Configures the current widget. * * Available options details in * http://www.symfony-project.org/plugins/sfDependentSelectPlugin * * @param array $options An array of options * @param array $attributes An array of default HTML attributes * * @see sfWidgetForm */ protected function configure($options = array(), $attributes = array()) { $this->addRequiredOption('callable', null); parent::configure($options, $attributes); }