onsdag den 3. august 2011

Warning: Smarty error: unable to read resource: “pkgelementindex.tpl” in …

For some time, I lived with the issue that my phpdoc pages with element indices gave me the above error.

Then I got tired of that and found this simple solution on Nisi's blog:

1. Clarify which template you use.
  • For example, I had output=HTML:frames:l0l33t in the .ini file, I used.
  • Thus, I went for the l0l33t directory.
2. Go to that directory, in my case: {PhpDocumentor-root}\phpDocumentor\Converters\HTML\frames\templates\l0l33t\templates.
  • Change the file extension of the file pkgelementindex.tp from .tp to .tpl.
  • The final 'l' is all, Smarty needs to grab and use that template file.
Don't ask me why the files are distributed with this extension. And count on that you must repeat, if you change the PhpDocumentor template.

Thanks, Nisi! With naming 'pkgelementindex.tpl', my problem disappeared.

Ingen kommentarer:

Send en kommentar