PHP code example of nikitakls / yii2-faq-module

1. Go to this page and download the library: Download nikitakls/yii2-faq-module 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/ */

    

nikitakls / yii2-faq-module example snippets


'modules'   => [
    'faq'   => 'nikitakls\faq\Faq',
],

'modules'   => [
        'faq' => [
            'class' => \nikitakls\faq\Faq::class,
            'isBackend' => true,
        ],
],

    <?= \nikitakls\faq\widgets\Aid::widget([
            'code' => 'hint-unique-code',
    ])