Example #1
0
 public function __construct(\Request $request, \Response $response)
 {
     if ($request->param('id')) {
         $this->image = new Model_Image($request->param('id'));
         if (!$this->image->loaded()) {
             throw new HTTP_Exception_404(__('This page seems to not exist.'));
         }
     }
     parent::__construct($request, $response);
 }
Example #2
0
 public function __construct(\Request $request, \Response $response)
 {
     if ($request->param('id')) {
         $this->project = new Model_Project($request->param('id'));
         if (!$this->project->loaded()) {
             throw new HTTP_Exception_404(__('This page seems to not exists.'));
         }
         $this->test_user_authorized();
     }
     parent::__construct($request, $response);
 }