protected function readfile() { $path = $this->param('path', false); $file = $this->root . '/' . trim($path, '/'); if ($path && file_exists($file)) { echo file_get_contents($file); } $this->app->stop(); }