コード例 #1
0
ファイル: Edit.php プロジェクト: dextercowley/jissues
 /**
  * Initialize the controller.
  *
  * This will set up default model and view classes.
  *
  * @return  $this  Method allows chaining
  *
  * @since   1.0
  * @throws  \RuntimeException
  */
 public function initialize()
 {
     parent::initialize();
     $this->getContainer()->get('app')->getUser()->authorize('admin');
     $this->view->setAlias($this->getContainer()->get('app')->input->get('project_alias'));
     return $this;
 }
コード例 #2
0
ファイル: Project.php プロジェクト: dextercowley/jissues
 /**
  * Initialize the controller.
  *
  * This will set up default model and view classes.
  *
  * @return  $this  Method allows chaining
  *
  * @since   1.0
  * @throws  \RuntimeException
  */
 public function initialize()
 {
     // Reload the project.
     $this->getContainer()->get('app')->getProject(true);
     parent::initialize();
     $this->view->setAlias($this->getContainer()->get('app')->input->get('project_alias'));
     return $this;
 }