- 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.
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