nikitakls/yii2-faq-module

Yii2 FAQ extension

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v0.1 2018-02-02 18:28 UTC

This package is not auto-updated.

Last update: 2020-09-19 08:21:17 UTC


README

FAQ extension for Yii2

Installation

This module in development, use in production at your own risk

The preferred way to install this extension is through composer.

composer require nikitakls/yii2-faq-module

Usage

Once the extension is installed, simply use it in your code by:

  • Apply migrations
yii migrate -p=@nikitakls/faq/migrations
  • Configure module

Add module in config file application: For frontend

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

For backend

'modules'   => [
        'faq' => [
            'class' => \nikitakls\faq\Faq::class,
            'isBackend' => true,
        ],
],
  • Work with Faq Module

You can add hint widget in you pages

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