|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
kery Smarty n00b
Joined: 09 Jan 2016 Posts: 1
|
Posted: Sat Jan 09, 2016 5:00 am Post subject: is an invalid reference |
|
|
Выдает ошибку
Fatal error: Smarty error: [in blocks_f.tpl.html line 2]: syntax error: $smarty.$binfo[b] is an invalid reference (smarty_compiler.class.php, line 2022) in D:\Server\domains\zakaz\core\smarty\smarty.class.php on line 1092
А ошибку вызывает вот этот блок кода в шаблоне {$smarty.$binfo[b]}
помогите разобраться понимаю что какая то синтаксическая ошибка |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sat Jan 09, 2016 9:01 am Post subject: |
|
|
Ошибка либо в "$smarty." либо в "$binfo".
Точнее можно узнать, только посмотрев дебаг шаблона. Какие переменные активны и т.п.
Ну и вообще, отучайтесь к $smarty в шаблонах обращаться. Не должно быть необходимости туда смотреть. Если всё таки приходится, вероятно, вы что-то не так делаете, неправильно разделяете бизнес-логику и представление.
Ну и версию Smarty тоже не мешало бы указывать… |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|