开发者

Symfony and xDebug View Variables

This will probably be a quick answer for somebody, but I haven't been able开发者_运维问答 to find the answer.

I'm using xDebug with a Symfony application, and I find it quite annoying that xDebug cannot report my view variables to my variable view in eclipse.

I figured the solution would be to declare these variables as public in the scope of the component (/action), however when I declare my view variables there, they are no longer available in my Symfony view/partial.

Has anybody run into this same annoyance and found a solution?

Edit

I did some further investigation and found that sfComponent implements a __set() so that my variables are not actually (direct) properties of the object. This makes a lot of sense, but I would still like to be able to debug my view variables. If anybody has a solution, I'm open to suggestions.


view variables are stored in a parameter holder, so they are still accessible from the view object. All you have to do is inspect the parameter holder variable.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜