/** Get page by request path * @return \System\Page|bool */ public function create_response(array $attrs = null) { $args = array(); $params = array(); $response = false; if (is_null($attrs)) { $domain = \System\Router::get_domain($this->host); if ($domain) { $path = \System\Router::get_path($domain, $this->path, $args, $params); if ($path) { $path['request'] = $this; $this->args = $args; $this->params = $params; $response = \System\Http\Response::from_request($this, $path); } } } else { $response = \System\Http\Response::from_request($this, $attrs); } return $response; }