Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
  protected function processForm(sfWebRequest $request, sfForm $form)
2
  {
3
    $form->bind($request->getParameter($form->getName()), $request->getFiles($form->getName()));
4
    if ($form->isValid())
5
    {
6
      $<?php echo $this->getSingularName() ?> = $form->save();
7
 
8
<?php if (isset($this->params['route_prefix']) && $this->params['route_prefix']): ?>
9
      $this->redirect('@<?php echo $this->getUrlForAction('edit') ?>?<?php echo $this->getPrimaryKeyUrlParams() ?>);
10
<?php else: ?>
11
      $this->redirect('<?php echo $this->getModuleName() ?>/edit?<?php echo $this->getPrimaryKeyUrlParams() ?>);
12
<?php endif; ?>
13
    }
14
  }