F.A.Q multilanguage module (backend) and output widget (frontend)

2.0.0 2018-11-10 13:09 UTC

This package is auto-updated.

Last update: 2024-05-16 07:38:21 UTC


README

alt text

Installation

  1. To install, run
$ composer require ws-cv-ua/faq
  1. Run migration command
yii migrate --migrationPath=@vendor/ws-cv-ua/faq/migrations
  1. In Backend:
'modules' => [
    ...
    'faq' => [
        'class' => 'wscvua\faq\Module',
        'languages' => ['ru', 'en']
    ],
    ...
],

languages parameter is not required. If it's empty, languages will have value of language of the app.

The Controller Views developed and test only for AdminLTE template.

Usage

use wscvua\faq\widgets\FaqWidget;

echo FaqWidget::widget();

By default widget show record of app language. But you can set language manual.

For config output html, you can set listOptions. There are config of ListView widget