Clockwork\Web\Web::renderAsset PHP Метод

renderAsset() публичный Метод

Render asset from ./public/ directory, specified by path
public renderAsset ( $path )
    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);
        }
    }