Skip to content

About

Widget for autogeneration slug

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

SlugWidget

Widget for autogeneration slug

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist heggi/yii2-slugwidget "*"

or add

"heggi/yii2-slugwidget": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'slug')->widget(\heggi\slugwidget\SlugWidget::className(), ['title' => 'title']) ?>

About

Widget for autogeneration slug

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages