/** * Execute the controller. * * @return string * * @since 1.0 */ public function execute() { $app = $this->getContainer()->get('app'); $app->getUser()->authorize('admin'); $table = new ProjectsTable($this->getContainer()->get('db')); $table->save($app->input->get('project', array(), 'array')); // Reload the project. $app->getProject(true); return parent::execute(); }