public final function __construct(Request &$request) { $this->request = $request; $this->response = $request->response(); if (!$this->request->isFromAjax()) { Tpl::set('default_app_page', static::$_page_name); } }