Find where a variable is defined in PHP (And/or SMARTY)?

Posted by Jon on Stack Overflow See other posts from Stack Overflow or by Jon
Published on 2010-06-04T00:47:24Z Indexed on 2010/06/05 12:02 UTC
Read the original article Hit count: 120

Filed under:
|
|
|

I'm currently working on a very large project, and am under a lot of pressure to finish it soon, and I'm having a serious problem. The programmer who wrote this last defined variables in a very odd way - the config variables aren't all in the same file, they're spread out across the entire project of over 500 files and 100k+ lines of code, and I'm having a hell of a time figuring out where a certain variable is, so I can fix an issue.
Is there a way to track this variable down? I believe he's using SMARTY (Which I can not stand, due to issues like this), and the variable is a template variable. I'm fairly sure that the variable I'm looking for was initially defined as a PHP variable, then that variable is passed into SMARTY, so I'd like to track down the PHP one, however if that's impossible - how can I track down where he defined the variable for SMARTY?

P.S. I'm in Vista, and don't have ssh access to the server, so 'grep' is out of the question.

© Stack Overflow or respective owner

Related posts about php

Related posts about variables