How do you get a message to the YII2 console?



  • How do you get a message to the browser console, using YII2?



  • After the details of the chat room, it was understood that the question of cooling php code in principle. All right.

    The first thing I've always used for "living" is the finding of a variable in a browser:

    echo '<pre>';
    echo var_dump($data);
    die('</pre>');
    

    Second, almost all the Fremworths have their ownbag panels, Yii2 That's it. https://github.com/yiisoft/yii2-debug/ + http://borshak.blogspot.ru/2015/04/yii-2-debugger-toolbar.html ♪

    Then more advanced options go through http://xdebug.org and IDE

    Longer profiling (logization and analyst) through http://www.yiiframework.com/doc-2.0/yii-log-logger.html Or really cool. https://www.graylog.org ♪


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2