srnden/yii2-input-alias

Yii2 input alias widget.

Installs: 27

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

1.0.1 2018-11-29 14:27 UTC

This package is auto-updated.

Last update: 2024-09-29 05:08:39 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'
]);

Example