Решил в одном скрипте обновить smarty на актуальную версию.
делаю
require_once(LIBS.'smarty/Smarty.class.php');
class Tpl extends Smarty { function __construct() { parent::__construct(); $this->setTemplateDir(THEMES); $this->setCompileDir(CACHE); $this->setConfigDir(LANG); $this->setCacheDir(CACHE); } }
Получаю ошибку
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "W:/html/test/modules/news\themes\news.html" on line 1 "{if $news}....
Гуглил, но что-то не могу понять как поправить. Не могу найти какие отличия там случились, что не пашет ничего.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
dropoff
Решил в одном скрипте обновить smarty на актуальную версию.
делаю
Получаю ошибку
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "W:/html/test/modules/news\themes\news.html" on line 1 "{if $news}....
Гуглил, но что-то не могу понять как поправить. Не могу найти какие отличия там случились, что не пашет ничего.
Подскажите плиз. в чем может быть проблема.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.