public function configure() { parent::configure(); $this->widgetSchema['content'] = new sfWidgetFormTextareaTinyMCEPost(array( 'height' => 350 )); $this->widgetSchema['title']->setAttribute('size', 60); $this->widgetSchema['tags'] = new sfWidgetFormInputTags(array( 'taggable_object' => $this->getObject(), 'enable_autocomplete' => true )); $this->validatorSchema['tags'] = new sfValidatorTags(array( 'taggable_object' => $this->getObject() )); }
public function configure() { $this->useFields(array('id', 'title', 'content', 'author_id')); parent::configure(); $this->widgetSchema->setNameFormat('sf_simple_quick_post[%s]'); }