srnden / yii2-input-alias
Yii2 input alias widget.
Package info
github.com/srnden/yii2-input-alias
Language:JavaScript
Type:yii2-extension
pkg:composer/srnden/yii2-input-alias
1.0.1
2018-11-29 14:27 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-03-01 00:26:22 UTC
README
Yii2 input alias widget.
Use URLify.js
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist srnden/yii2-input-alias "~1.0.0"
or add
"srnden/yii2-input-alias": "~1.0.0"
to the require section of your composer.json file.
Usage
use srnden\inputalias\InputAlias; echo $form->field($model, 'pagetitle')->textInput(); echo $form->field($model, 'alias')->widget(InputAlias::class, [ 'source' => [$model, 'pagetitle'] // or id or false ]); echo InputAlias::widget([ 'name' => 'alias' ]);
