S
S
sunnyrio2016-08-17 21:19:28
PHP
sunnyrio, 2016-08-17 21:19:28

O'reilly smarty template, why doesn't the template load in the browser?

I downloaded and installed smarty, rewrote the test case from the book, ran the template, and this is the browser message:
Fatal error: Uncaught --> Smarty: Unable to load template 'file:C:/Program Files/EasyPHP-DevServer-14.1VC9/data /localweb/temp/index.tpl' <-- thrown in C:\Program Files\EasyPHP-DevServer-14.1VC9\data\localweb\Smarty\sysplugins\smarty_internal_template.php on line 163
what is the problem tell me the file it refers to the browser is attached to the question.
https://yadi.sk/d/BDEtb33ruHutZ

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Андрей, 2016-08-25
@iCoderXXI

Так смарти не может найти шаблон по указанному пути C:/Program Files/EasyPHP-DevServer-14.1VC9/data/localweb/temp/index.tpl, т.е. надо файлик index.tpl закинуть в папку C:/Program Files/EasyPHP-DevServer-14.1VC9/data/localweb/temp/
Файл в приложении к делу прямого отношения не имеет, проблема не в нём.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question