Пример #1
0
 /**
  * Execute the controller.
  *
  * @return  string
  *
  * @since   1.0
  */
 public function execute()
 {
     $model = new ProjectModel($this->getContainer()->get('db'));
     $model->delete($this->getContainer()->get('app')->input->get('project_alias'));
     // Reload the project
     $this->getContainer()->get('app')->getProject(true);
     return parent::execute();
 }
Пример #2
0
 /**
  * Method to render the view.
  *
  * @return  string  The rendered view.
  *
  * @since   1.0
  */
 public function render()
 {
     $this->renderer->set('project', $this->model->getByAlias($this->getAlias()));
     return parent::render();
 }