How to fix ParseError syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')'?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
35 views
Teach framework yii2. Already tried a lot of things to fix, nothing came, except that is still done mistakes, but then decided to seek help. Can you tell what's the matter?
I understand that the maximum error is stupid and the program itself pokes a nose in, but can't figure out what is wrong. Can you clear poke? :D

Line with error: <?= \\app\\components\\MenuWidget::widget(['tpl'] => ['menu'])?>

5ae86c077adb4909399268.png
by | 35 views

2 Answers

0 like 0 dislike
<?= \\app\\components\\MenuWidget::widget(['tpl' => 'menu'])?>
by
0 like 0 dislike
app\\components\\MenuWidget
this widget for yii does not have the slightest relationship. What's inside him crooked, only the author knows.
So without the code of the widget or the fortune-teller 80 level, I can only wish you good luck
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 20, 2019 by alex2844
110,608 questions
257,186 answers
0 comments
36,682 users