public function editAction()
    {
        if ($form = $this->processForm()) {
            if ($this->useTabbedForms && method_exists($this, 'getSubject')) {
                $data = $this->getModel()->loadFirst();
                $subject = $this->getSubject($data);
                $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));
            } else {
                $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));
            }
            $this->html[] = $form;
        }
    }
public function editAction()
    {
        if ($form = $this->processForm()) {
            if ($this->useTabbedForms && method_exists($this, 'getSubject')) {
                $data = $this->getModel()->loadFirst();
                $subject = $this->getSubject($data);
                $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));
            } else {
                $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));
            }
            $this->html[] = $form;
        }
    }
public function editAction ( ) { if ( $ form = $ this -> processForm ( ) ) { if ( $ this -> useTabbedForms && method_exists ( $ this , 'getSubject' ) ) { $ data = $ this -> getModel ( ) -> loadFirst ( ) ; $ subject = $ this -> getSubject ( $ data ) ; $ this -> setPageTitle ( sprintf ( $ this -> _ ( 'Edit %s %s' ) , $ this -> getTopic ( 1 ) , $ subject ) ) ; } else { $ this -> setPageTitle ( sprintf ( $ this -> _ ( 'Edit %s' ) , $ this -> getTopic ( 1 ) ) ) ; } $ this -> html [ ] = $ form ; } }
Creates a form to edit

Uses $this->getModel()
$this->addFormElements()
Creates a form to edit