public function __construct(HttpRequest $request = null) { $this->setContentType(self::CONTENT_TYPE); parent::__construct($request); // Set the initial title. try { $this->titleParts = array(Application::getCurrent()->getName()); } catch (Exception $exception) { $this->titleParts = ''; } }