Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

whats wrong with section?

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
shemeri
Smarty n00b


Joined: 13 Sep 2017
Posts: 1

PostPosted: Wed Sep 13, 2017 9:47 pm    Post subject: whats wrong with section? Reply with quote

Hello,

This is driving me crazy!! I cannot see whats wrong, help is much approciated.

{section name=combiProducts start=0 loop=10 step=1}
unexpected "name" attribute

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "combimenu.html" on line 54 "{section name=combiProducts start=0 loop=10 step=1}" unexpected "name" attribute <-- thrown in smarty\v3.1.30\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 54

What am I doing wrong here Sad
Back to top
View user's profile Send private message
bsmither
Smarty Pro


Joined: 20 Dec 2011
Posts: 232
Location: West Coast

PostPosted: Thu Sep 14, 2017 1:19 am    Post subject: Reply with quote

I personally see nothing wrong with the syntax of that command.

So I would want to start looking at prior statements to see if I missed a closing quote, closing brace, or anything that would confuse Smarty by thinking {section would be part of something else.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 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