ws-cv-ua / faq
F.A.Q multilanguage module (backend) and output widget (frontend)
2.0.0
2018-11-10 13:09 UTC
Requires
- php: >=5.4
- ws-cv-ua/adminlte-box: >=3.1.0
- yiisoft/yii2: *
README
Installation
- To install, run
$ composer require ws-cv-ua/faq
- Run migration command
yii migrate --migrationPath=@vendor/ws-cv-ua/faq/migrations
- 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