2017 © Pedro Peláez
 

yii2-extension yii-slug-input

Generate auto slug text from any input using model input or just Html id attribute

image

wardany/yii-slug-input

Generate auto slug text from any input using model input or just Html id attribute

  • Tuesday, February 21, 2017
  • by muhammad wardany
  • Repository
  • 1 Watchers
  • 1 Stars
  • 67 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

yii2 widget to auto generate slug using jQuery

Generate auto slug text from any input using model input or just Html id attribute, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist wardany/yii-slug-input:dev-master

or add, (*4)

"wardany/yii-slug-input": "dev-master"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

php <?= $form->field($model, 'slug')->widget(Slugify::className(),['source_attribute'=>'title', 'separator'=>'_', 'disable'=> true]) ?>, (*7)

The Versions

21/02 2017

dev-master

9999999-dev

Generate auto slug text from any input using model input or just Html id attribute

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar muhammad wardany

extension yii2 jquery widget slugify slug input javascript