public static function initClientScript($view, $method = self::METHOD_POLL)
    {
        $asset = NfyAsset::register($view);
        return $asset->baseUrl;
    }
public static function initClientScript($view, $method = self::METHOD_POLL)
    {
        $asset = NfyAsset::register($view);
        return $asset->baseUrl;
    }
public static function initClientScript ( $ view , $ method = self :: METHOD_POLL ) { $ asset = NfyAsset :: register ( $ view ) ; return $ asset -> baseUrl ; }
Registers required JS libraries and CSS files.
@param \yii\web\View $view
@param  string $method use either METHOD_POLL or METHOD_PULL constants
@return string base URL for assets
Registers required JS libraries and CSS files .