Skip to content

heggi/yii2-slugwidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

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

Watchers

Forks

Packages

No packages published

Languages