src/View/AbstractRender.php
protected function getTemplateFileContent($what)
    {
        static $fileCache = array();

        if (isset($fileCache[$what]) === true) {
            return $fileCache[$what];
        }

        $fileCache[$what] = preg_replace(
            '/\s+/',
            ' ',
            $this->pool->fileService->getFileContents($this->skinPath . $what . '.html')
        );
        return $fileCache[$what];
    }
protected function getTemplateFileContent($what)
    {
        static $fileCache = array();

        if (isset($fileCache[$what]) === true) {
            return $fileCache[$what];
        }

        $fileCache[$what] = preg_replace(
            '/\s+/',
            ' ',
            $this->pool->fileService->getFileContents($this->skinPath . $what . '.html')
        );
        return $fileCache[$what];
    }
protected function getTemplateFileContent ( $ what ) { static $ fileCache = array ( ) ; if ( isset ( $ fileCache [ $ what ] ) === true ) { return $ fileCache [ $ what ] ; } $ fileCache [ $ what ] = preg_replace ( '/\s+/' , ' ' , $ this -> pool -> fileService -> getFileContents ( $ this -> skinPath . $ what . '.html' ) ) ; return $ fileCache [ $ what ] ; }
Loads a template file from the skin folder.

@param string $what
Filename in the skin folder without the ".html" at the end.

@return string
The template file, without whitespaces.
Loads a template file from the skin folder .