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