Reputation: 67194
I have some HTML errors in my output source code, coming from one of the .tpls. I'm wondering if there is a tool that is able to give me a list of .tpls that are used on the current page.
I can't seem to find this error and the site isn't very well documented. I'm not the best PHP programmer, I'd be looking for an online resource or something pretty simple.
Upvotes: 0
Views: 1443
Reputation: 7834
You can use the debugging console. This will show you all the included templates, assigned variables, and config file variables for the current page.
http://www.smarty.net/manual/en/chapter.debugging.console.php
Just set: $smarty->debugging = true;
The next time you load a page a javascript window will pop up with all you want to know.
EDIT: I'm assuming that you're using smarty. If this is not the case, this answer is completely irrelevant.
Upvotes: 2
Reputation: 382746
The tpl
files are template files, normally the actual code goes somewhere else in some php files. So you will have to search where this error is coming from, the least i can suggest is to put this in a file which is included in all files:
ini_set('display_errors', true);
error_reporting(E_ALL);
Upvotes: 1