alexeevdv/yii2-sluggable-input-widget

v1.0.0 2017-06-06 21:22 UTC

This package is auto-updated.

Last update: 2024-10-29 04:04:10 UTC


README

Preferred way to install this extension is via composer:

composer require alexeevdv/yii2-sluggable-input-widget 1.0.0

Usage

<?php

use alexeevdv\widget\SluggableInputWidget;

// ...

echo $form
    ->field($model, 'title');

echo $form
    ->field($model, 'slug')
    ->widget(SluggableInputWidget::className(), [
        'dependsOn' => 'title',    
    ]);

// ...