view = $view; } /** * Output human readable filesize * * @param string $filename Filename to read size * * @return string */ public function filesize($file) { $size = 0; if (is_readable($file)) { $size = filesize($file); } $size = $this->view->byteOutput($size); return $size; } }