How to display a message in the browser console browser log when using YII2?
1 answer
After finding out the details in the chat, I realized that the question about debugging php code is in principle. So in order:
The first thing I always use for live debugging is outputting a variable to the browser:
echo '<pre>'; echo var_dump($data); die('</pre>'); Secondly, almost all frameworks have their own debugging panel, Yii2 has Debugger Toolbar + article how to configure .
Then there are more advanced options through xdebug and IDE .
Further profiling (logging and analytics) via Yii :: Logger or completely cool through Graylog .
|
echonot suit you? - korytoffсообщение в лог консоли YII2?was writtenсообщение в лог консоли YII2?- korytoff