public function init() { parent::init(); $this->setAction('/admin/entry/edit'); // What entry id are we editing?! $this->addElement('hidden', 'id', array('decorators' => $this->_noElementDecorator, 'validators' => array('Digits'), 'required' => true)); $this->addElement('hidden', 'author', array('decorators' => $this->_noElementDecorator)); $this->getDisplayGroup('entrydata')->setLegend('Edit Entry'); }