How to check my action is being executed in Zend Framework
In zend framework, what is the best way to be s开发者_StackOverflowure that my controller action is being executed and how can i check different values of the variables in the actions. (Without using debugger)
var_dump()
(see manual page)
or
Zend_Log
to any number of destinations. See: http://framework.zend.com/manual/en/zend.log.writers.html
or
Zend_Log_Writer_Firebug()
for FireBug/FirePHP logging is my favourite. See: http://www.christophdorn.com/Blog/2008/09/02/firephp-and-zend-framework-16/
Put die(Zend_Debug::dump($anyVariable));
on the line you want to make sure is executed :)
As an addition to the other answers (using die() & var_dump/Zend_debug), I'll advise you ZFDebug toolbar
It can show you some relevant informations about the current request.
精彩评论