stivehu / yii2-persisthide
Holding hide/show item after page reload
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
This package is auto-updated.
Last update: 2025-04-29 00:30:08 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(); ?>