andrewdanilov/yii2-fancybox

Fancybox 资产

1.0.0 2019-08-15 08:05 UTC

This package is auto-updated.

Last update: 2024-09-16 23:28:54 UTC


README

为您的页面添加fancybox功能的资产

安装

安装此扩展的首选方式是通过 Composer

运行以下命令之一:

composer require andrewdanilov/yii2-fancybox "~1.0.0"

或者将以下内容添加到您的 composer.json 文件的 require 部分中:

"andrewdanilov/yii2-fancybox": "~1.0.0"

使用方法

在视图中注册资产包

<?php
/* @var $this \yii\web\View */
\andrewdanilov\fancybox\FancyboxAsset::register($this);