Is there a way to inspect an element and see the PHP page (template file) that element is coming from?
For example, using Google Chrome's developer tools I can see which .CSS page any element is using. I'd like to do the same to quickly find the .PHP files I need to edit.
EDIT: I realize that simply doing this with any browser tool could be a big security issue. So, is there some sort of local debug tool, or a script I could install that would allow me to do this while the debug=true for example?
If you are using Eclipse you might want to take a look at this article. You can actually follow the flow by stepping into the code. Other than that you might want to take a look at Aptana Studio 3. I haven't used it much for PHP, but for rails it gives you a lot of hints - so I imagine it to work well for PHP too.