PHP code example of srnden / yii2-input-alias

1. Go to this page and download the library: Download srnden/yii2-input-alias library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

srnden / yii2-input-alias example snippets


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'
]);