public function fetch($file, $data = null) {
        ob_start();

        $this->render($file, $data);
        $output = ob_get_clean();

        return $output;
    }
public function fetch($file, $data = null) {
        ob_start();

        $this->render($file, $data);
        $output = ob_get_clean();

        return $output;
    }
public function fetch ( $ file , $ data = null ) { ob_start ( ) ; $ this -> render ( $ file , $ data ) ; $ output = ob_get_clean ( ) ; return $ output ; }
Gets the output of a template.

@param string $file Template file
@param array $data Template data
@return string Output of template
Gets the output of a template .