Installation
The preferred way to install this extension is through composer., (*1)
Either run, (*2)
php composer.phar require --prefer-dist dungphanxuan/yii2-reveal "*"
or add, (*3)
"dungphanxuan/yii2-reveal": "dev-master"
to the require section of your composer.json
file., (*4)
Usage
Once the extension is installed, simply use it in your code by :, (*5)
<?php echo dungphanxuan\yii2reveal\RevealWidget::widget([
'name' => 'content',
'options'=>[// html attributes
'id'=>'content'
],
'clientOptions'=>[
]
]);; ?>