src/utils/Code.php
public static function file($path, $format = '')
	{
		if ($format === '')
		{
			$format = self::getExtension($path);
		}
		$text = file_get_contents($path);
		return self::output($text, $format);
	}
public static function file($path, $format = '')
	{
		if ($format === '')
		{
			$format = self::getExtension($path);
		}
		$text = file_get_contents($path);
		return self::output($text, $format);
	}
public static function file ( $ path , $ format = '' ) { if ( $ format === '' ) { $ format = self :: getExtension ( $ path ) ; } $ text = file_get_contents ( $ path ) ; return self :: output ( $ text , $ format ) ; }
Output the contents of an entire file

@param   string  $path
@param   string  $format
@return  string
Output the contents of an entire file