PHP code example of pistej / yii2-faq

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

    

pistej / yii2-faq example snippets


'modules' => [
    ...
    'faq' => [
        'class' => 'pistej\faq\Faq',
    ],
],

<?= \pistej\faq\widgets\FaqWidget\FaqWidget::widget(); 

'languages' => ['sk', 'pl'],

php composer.phar 
bash
php yii migrate/up --migrationPath=vendor/pistej/yii2-faq/migrations/
bash
php vendor/bin/yii message messages/config.php