Skip to content

srnden/yii2-input-alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 input alias widget.

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published