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

One good reason to use Smarty for your site.

 
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 -> Testimonials
View previous topic :: View next topic  
Author Message
Lord Yggdrasill
Smarty Rookie


Joined: 31 Mar 2012
Posts: 21

PostPosted: Thu Dec 13, 2012 4:59 am    Post subject: One good reason to use Smarty for your site. Reply with quote

PHP as a templating language just cant get more ugly, seeing a bunch of <?php and ?> tags inside an html document gives me a headache.

When it is compared to other templating softwares it becomes a matter of choice. I personally prefer Smarty's style, the usage of curly bracket to enclose variables. Even in string concatenation I prefer using curly brackets over concatenation dot operator, I feel its more readable this way.

Not sure for the security and protection part though, Smarty does have a problem in terms of referencing to external links when you have suhosin installed(which generates errors that does not display on the screen). But overall, it is the template engine to use.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Thu Dec 13, 2012 2:54 pm    Post subject: Re: One good reason to use Smarty for your site. Reply with quote

Lord Yggdrasill wrote:
PHP as a templating language just cant get more ugly, seeing a bunch of <?php and ?> tags inside an html document gives me a headache.

When it is compared to other templating softwares it becomes a matter of choice. I personally prefer Smarty's style, the usage of curly bracket to enclose variables. Even in string concatenation I prefer using curly brackets over concatenation dot operator, I feel its more readable this way.

Not sure for the security and protection part though, Smarty does have a problem in terms of referencing to external links when you have suhosin installed(which generates errors that does not display on the screen). But overall, it is the template engine to use.


Smarty cannot overcome the security settings of suhosin, nor can any other php library. That is something you need to address outside of Smarty. Also as for error display on screen, again that is controlled by your php.ini settings, not Smarty.
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 -> Testimonials 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