public function getContent(Smarty_Template_Source $source)
    {
        $t = '';
        // the availability of the stream has already been checked in Smarty_Resource::fetch()
        $fp = fopen($source->filepath, 'r+');
        if ($fp) {
            while (!feof($fp) && ($current_line = fgets($fp)) !== false) {
                $t .= $current_line;
            }
            fclose($fp);

            return $t;
        } else {
            return false;
        }
    }
public function getContent(Smarty_Template_Source $source)
    {
        $t = '';
        // the availability of the stream has already been checked in Smarty_Resource::fetch()
        $fp = fopen($source->filepath, 'r+');
        if ($fp) {
            while (!feof($fp) && ($current_line = fgets($fp)) !== false) {
                $t .= $current_line;
            }
            fclose($fp);

            return $t;
        } else {
            return false;
        }
    }
public function getContent ( Smarty_Template_Source $ source ) { $ t = '' ; // the availability of the stream has already been checked in Smarty_Resource::fetch() $ fp = fopen ( $ source -> filepath , 'r+' ) ; if ( $ fp ) { while ( ! feof ( $ fp ) && ( $ current_line = fgets ( $ fp ) ) !== false ) { $ t .= $ current_line ; } fclose ( $ fp ) ; return $ t ; } else { return false ; } }
Load template's source from stream into current template object

@param Smarty_Template_Source $source source object
@return string template source
@throws SmartyException if source cannot be loaded
Load template s source from stream into current template object