webvimark/form-fields-visibility

There is no license information available for the latest version (dev-master) of this package.

Widget for yii2 allowing to hide/show chosen fields in ActiveForm

dev-master 2014-10-25 11:07 UTC

This package is auto-updated.

Last update: 2024-04-29 02:56:17 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist webvimark/form-fields-visibility "*"

or add

"webvimark/form-fields-visibility": "*"

to the require section of your composer.json file.

Usage

<?= FormFieldsVisibility::widget([
        'model'=>$model,
        'attributes' => [
                'url'           => $model->getAttributeLabel('url'),
                'page_place_id' => 'Some magic place',
                'meta_keywords' => $model->getAttributeLabel('meta_keywords'),
                'meta_title'    => $model->getAttributeLabel('meta_title'),
        ],
]) ?>