Answer the question
In order to leave comments, you need to log in
Many form comments on one page?
https://github.com/yeesoft/yii2-comments
Connected this module on the news page.
This page displays news via foreach, you need to connect this module under each news.
I connect in this way:
$item['id] = unique news entry.
echo Comments::widget([
'model' => $item['id]'
]);
Answer the question
In order to leave comments, you need to log in
echo Comments::widget
- this is not a module connection, but a widget output$item['id']
always have one. Or a curve widget. Show the code (the whole cycle) so that we can talk about something
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question