stivehu / yii2-persisthide
Holding hide/show item after page reload
Package info
github.com/stivehu/yii2-persisthide
Type:yii2-extension
pkg:composer/stivehu/yii2-persisthide
1.0
2016-05-30 16:36 UTC
Requires
This package is auto-updated.
Last update: 2026-03-01 00:22:10 UTC
README
Holding hide/show item after page reload
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist stivehu/yii2-persisthide "*"
or add
"stivehu/yii2-persisthide": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?php $hidden = stivehu\persisthide\Persisthide::begin(); echo $hidden->beginTag();?> The hiden text <?= $hidden->endTag(); ?> <?= echo $hidden->showButton(Yii::t('app', 'More search'), ['class' => 'btn btn-primary']); ?> <?php stivehu\persisthide\Persisthide::end(); ?>