public function dump($fileName)
    {
        $fileDir = $this->assetsResolver->resolveAssetSourcePath($this->module->getCode(), false, $fileName, $this->parser);

        if (null !== $fileDir) {
            $content = file_get_contents($fileDir . DS . $fileName);
            if (false === $content) {
                $content = "";
            }
        } else {
            $content = sprintf("ERR: Unknown file %s for module %s", $fileName, $this->module->getCode());
        }

        return $content;
    }
public function dump($fileName)
    {
        $fileDir = $this->assetsResolver->resolveAssetSourcePath($this->module->getCode(), false, $fileName, $this->parser);

        if (null !== $fileDir) {
            $content = file_get_contents($fileDir . DS . $fileName);
            if (false === $content) {
                $content = "";
            }
        } else {
            $content = sprintf("ERR: Unknown file %s for module %s", $fileName, $this->module->getCode());
        }

        return $content;
    }
public function dump ( $ fileName ) { $ fileDir = $ this -> assetsResolver -> resolveAssetSourcePath ( $ this -> module -> getCode ( ) , false , $ fileName , $ this -> parser ) ; if ( null !== $ fileDir ) { $ content = file_get_contents ( $ fileDir . DS . $ fileName ) ; if ( false === $ content ) { $ content = "" ; } } else { $ content = sprintf ( "ERR: Unknown file %s for module %s" , $ fileName , $ this -> module -> getCode ( ) ) ; } return $ content ; }
helper function allowing you to get the content of a file

@param string $fileName the template path of the template

@return string the content of the file
helper function allowing you to get the content of a file