예제 #1
0
 /**
  * Display a form to edit a existing resource
  */
 public function editresourceAction()
 {
     $this->assertPermission('config/application/resources');
     $this->getTabs()->add('resources/update', array('label' => $this->translate('Update Resource'), 'url' => Url::fromRequest()))->activate('resources/update');
     $form = new ResourceConfigForm();
     $form->setIniConfig(Config::app('resources'));
     $form->setRedirectUrl('config/resource');
     $form->handleRequest();
     $this->view->form = $form;
     $this->render('resource/modify');
 }
예제 #2
0
 /**
  * Display a form to edit a existing resource
  */
 public function editresourceAction()
 {
     $this->assertPermission('config/application/resources');
     $form = new ResourceConfigForm();
     $form->setTitle($this->translate('Edit Existing Resource'));
     $form->setIniConfig(Config::app('resources'));
     $form->setRedirectUrl('config/resource');
     $form->handleRequest();
     $this->view->form = $form;
     $this->render('resource/modify');
 }