public function readData($pathFilename)
    {
        $pathFilename = ucfirst($pathFilename);

        $pathFilename = realpath(__DIR__) . "/../Template/{$pathFilename}.template";

        $file = fopen($pathFilename, 'r');

        if ($data = fread($file, filesize($pathFilename))) {
            return str_replace('<\?php', '<?php', $data);
        } else {
            throw new \ErrorException(realpath(__DIR__) . "/../Template/{$pathFilename}.template not Found");
        }
    }
public function readData($pathFilename)
    {
        $pathFilename = ucfirst($pathFilename);

        $pathFilename = realpath(__DIR__) . "/../Template/{$pathFilename}.template";

        $file = fopen($pathFilename, 'r');

        if ($data = fread($file, filesize($pathFilename))) {
            return str_replace('<\?php', '<?php', $data);
        } else {
            throw new \ErrorException(realpath(__DIR__) . "/../Template/{$pathFilename}.template not Found");
        }
    }
public function readData ( $ pathFilename ) { $ pathFilename = ucfirst ( $ pathFilename ) ; $ pathFilename = realpath ( __DIR__ ) . "/../Template/{$pathFilename}.template" ; $ file = fopen ( $ pathFilename , 'r' ) ; if ( $ data = fread ( $ file , filesize ( $ pathFilename ) ) ) { return str_replace ( '<\?php' , '<?php' , $ data ) ; } else { throw new \ ErrorException ( realpath ( __DIR__ ) . "/../Template/{$pathFilename}.template not Found" ) ; } }
Read data form template folder

@param $pathFilename
@return mixed
@throws \ErrorException
Read data form template folder