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

Check syntax of loops

 
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 -> Feature Requests
View previous topic :: View next topic  
Author Message
eadz
Smarty Regular


Joined: 30 Apr 2003
Posts: 61
Location: Auckland, New Zealand

PostPosted: Wed May 21, 2003 3:34 am    Post subject: Check syntax of loops Reply with quote

Currently, if you put {if} in your template, without {/if}, smarty compiles it into a php file, which then has a compile error. Maybe if smarty could check that the template has closed all it's loops, and if not, write to the template a custom error message from a template ( error.tpl? )

Becasue you can't easily catch compile errors in php, if you let other people edit the templates, the error page is ugly, and not very helpful.

It should instead say, in a nice template provided by error.tpl :
unclosed {if} on line 40 of mypage.tpl
Back to top
View user's profile Send private message Visit poster's website
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 -> Feature Requests 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