Exemplo n.º 1
0
 public function executeSetInstitution(sfWebRequest $request)
 {
     if (!$this->getUser()->isAtLeast(Users::MANAGER)) {
         $this->forwardToSecureAction();
     }
     $collection = new Collections();
     $collection->setInstitutionRef(Doctrine::getTable('Collections')->getInstitutionNameByCollection($request->getParameter('parent_ref'))->getId());
     $this->form = new CollectionsForm($collection);
     $this->setLayout(false);
 }