开发者

How to check my action is being executed in Zend Framework

开发者 https://www.devze.com 2023-02-22 13:19 出处:网络
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

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

How to check my action is being executed in Zend Framework

It can show you some relevant informations about the current request.

0

精彩评论

暂无评论...
验证码 换一张
取 消