CakePHP debug() isn't working but Debugger::dump() is fine

前端 未结 1 1715
时光说笑
时光说笑 2021-01-06 08:53

Ever since PHP4 and Cake 1.3 I have been using debug($data); to debug things such as model output in CakePHP.

However, since upgrading to PHP5.4, I have

相关标签:
1条回答
  • 2021-01-06 09:36

    This can happen with non-utf8 encoded data in your db records - if the rest of your application is UTF-8 that is. debug() will then just output "nothing". var_dump(), print_r() and other php internal methods should still print the output, though.

    You can usually re-encode them to utf8 using iconv() etc.

    0 讨论(0)
提交回复
热议问题