Example #1
0
 /**
  * Initialize the controller.
  *
  * @return  $this  Method supports chaining
  *
  * @since   1.0
  */
 public function initialize()
 {
     parent::initialize();
     /* @type \JTracker\Application $application */
     $application = $this->getContainer()->get('app');
     $application->getUser()->authorize('manage');
     $this->model->setProject($this->getContainer()->get('app')->getProject(true));
     $this->view->setProject($this->getContainer()->get('app')->getProject());
     return $this;
 }