public function getPage()
	{
		$pageData = $this->core->getSettings()->pagedata;
		$routeID = $this->route->id;

		$this->logger->info('Requested route: ' . $routeID);
		$this->logger->debug('Route info', array($this->route));

		if(isset($pageData->$routeID->active))
			$this->view->addActiveHtmlId($pageData->$routeID->active);

		$html = $this->view->render($routeID . '.html', array(
			'siteTitle' => isset($pageData->$routeID->title)?$pageData->$routeID->title:null,
			'runtime' => round(microtime(true) - REQUEST_TIME,3) ,
            'locale' => $this->core->getLocaleHandler()->getLocale(),
            'timezone' => date_default_timezone_get(),
			'base_path' => StringUtils::afterFirst(getcwd(), $_SERVER['DOCUMENT_ROOT'])
		));
		
		return new HttpResponse(200, $html, $this->headers);
	}
public function getPage()
	{
		$pageData = $this->core->getSettings()->pagedata;
		$routeID = $this->route->id;

		$this->logger->info('Requested route: ' . $routeID);
		$this->logger->debug('Route info', array($this->route));

		if(isset($pageData->$routeID->active))
			$this->view->addActiveHtmlId($pageData->$routeID->active);

		$html = $this->view->render($routeID . '.html', array(
			'siteTitle' => isset($pageData->$routeID->title)?$pageData->$routeID->title:null,
			'runtime' => round(microtime(true) - REQUEST_TIME,3) ,
            'locale' => $this->core->getLocaleHandler()->getLocale(),
            'timezone' => date_default_timezone_get(),
			'base_path' => StringUtils::afterFirst(getcwd(), $_SERVER['DOCUMENT_ROOT'])
		));
		
		return new HttpResponse(200, $html, $this->headers);
	}
public function getPage ( ) { $ pageData = $ this -> core -> getSettings ( ) -> pagedata ; $ routeID = $ this -> route -> id ; $ this -> logger -> info ( 'Requested route: ' . $ routeID ) ; $ this -> logger -> debug ( 'Route info' , array ( $ this -> route ) ) ; if ( isset ( $ pageData -> $ routeID -> active ) ) $ this -> view -> addActiveHtmlId ( $ pageData -> $ routeID -> active ) ; $ html = $ this -> view -> render ( $ routeID . '.html' , array ( 'siteTitle' => isset ( $ pageData -> $ routeID -> title ) ? $ pageData -> $ routeID -> title : null , 'runtime' => round ( microtime ( true ) - REQUEST_TIME , 3 ) , 'locale' => $ this -> core -> getLocaleHandler ( ) -> getLocale ( ) , 'timezone' => date_default_timezone_get ( ) , 'base_path' => StringUtils :: afterFirst ( getcwd ( ) , $ _SERVER [ 'DOCUMENT_ROOT' ] ) ) ) ; return new HttpResponse ( 200 , $ html , $ this -> headers ) ; }
Displays a template based page by rendering a template file which is generated by route name plus .html ending
@throws \UnexpectedValueException
@return \HttpResponse The response object with content, headers, HTTP status code, etc.
Displays a template based page by rendering a template file which is generated by route name plus . html ending