예제 #1
0
 /**
  * Método que para leer un archivo plano
  * @return array
  */
 public static function read($name, $ext = 'txt')
 {
     if (empty(self::$_file_path)) {
         self::$_file_path = APP_PATH . 'temp/logs/';
     }
     $file = rtrim(self::$_file_path, '/') . '/' . $name . '.' . $ext;
     if (is_file($file)) {
         return file($file);
     } else {
         return false;
     }
 }