public function renderAsset($path) { $path = realpath(__DIR__ . '/public/' . $path); if (strpos($path, __DIR__ . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR) === false) { return; } if (file_exists($path)) { readfile($path); } }