public function __construct(\Request $request, \Response $response) { if ($request->action() == 'authenticate') { $this->force_this_main_template = 'blank'; } parent::__construct($request, $response); }
public function __construct(\Request $request, \Response $response) { $this->image = new Model_Image($request->param('id')); if (!$this->image->loaded()) { $exception = new HTTP_Exception_404(__('This page seems to not exists.')); $response->body($exception->get_response()->body()); } parent::__construct($request, $response); }