Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

is an invalid reference

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian
View previous topic :: View next topic  
Author Message
kery
Smarty n00b


Joined: 09 Jan 2016
Posts: 1

PostPosted: Sat Jan 09, 2016 5:00 am    Post subject: is an invalid reference Reply with quote

Выдает ошибку
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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sat Jan 09, 2016 9:01 am    Post subject: Reply with quote

Ошибка либо в "$smarty." либо в "$binfo".
Точнее можно узнать, только посмотрев дебаг шаблона. Какие переменные активны и т.п.

Ну и вообще, отучайтесь к $smarty в шаблонах обращаться. Не должно быть необходимости туда смотреть. Если всё таки приходится, вероятно, вы что-то не так делаете, неправильно разделяете бизнес-логику и представление.

Ну и версию Smarty тоже не мешало бы указывать…
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP