Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
One good reason to use Smarty for your site.

 
Post new topic   Reply to topic    Smarty Forum Index -> Testimonials
View previous topic :: View next topic  
Author Message
Lord Yggdrasill
Smarty Rookie


Joined: 31 Mar 2012
Posts: 20

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: 7265
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
CarmenCoto
Smarty Rookie


Joined: 02 Jun 2014
Posts: 9

PostPosted: Wed Jun 18, 2014 1:03 am    Post subject: Reply with quote

I agree! Before, I have that same problem and realized all happened because I used strategies putting PHP, but when I used the natural and owned PHP setting it's work mymathdone smoothly.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    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