Skip to content
/ faq Public

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

Notifications You must be signed in to change notification settings

ws-cv-ua/faq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages