PHP code example of attek / text

1. Go to this page and download the library: Download attek/text 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/ */

    

attek / text example snippets


'modules' => [
    ...
    'text' => [
            'class' => 'attek\text\Module',            
    ]
    ...
]

attek\text\assets\HelpAsset::register($this);

...
$form = ActiveForm::begin( 
    [ 'fieldConfig' => [ 'class' => 'attek\text\components\ActiveField' ]
...
 $form->field( $model, 'name' )->textInput()->hint('Text for popup', ['slug' => 'slug-name'])     
...

attek\text\assets\HelpAsset::register($this);

echo Html::a(Html::tag('i', '', ['class' => 'fa fa-question-circle']), null,
                                ['data-slug' => 'slug-name',  'data-toggle'=> 'popover', 'title' => 'Title for help'])

php composer.phar