Answer the question
In order to leave comments, you need to log in
Why doesn't it display any information from the widget?
This is my first time making a widget in Yii2. At first, I practiced on pure Yii2 Basic - everything works. The widget is very simple, essentially just static code.
I'm trying to make a similar widget on a working project - I'm facing a strange problem. If you write die in a widget or its view; - the page template breaks (ie die; works and breaks the page), but the output of any other information, the same echo '123123'; does not lead to any result.
If you do:
echo '123123';
die;
That 123123 displays. What can be in the functionality of a widget, or page output, that ignores the output from the widget?
Answer the question
In order to leave comments, you need to log in
1. Why do you need die;
? It terminates the script. Not a widget, just a script (yii)
2.
ignores the output from the widgetshow the widget, why did you decide that something is being ignored there?
The widget returns output data. I think you are calling the widget incorrectly!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question