Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Double pipes mistake - {'text'||print}

 
Post new topic   Reply to topic    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
bimal
Smarty Elite


Joined: 19 Apr 2007
Posts: 420
Location: Kathmandu, Nepal

PostPosted: Thu Jun 07, 2012 11:26 am    Post subject: Double pipes mistake - {'text'||print} Reply with quote

Probably it is the time to catch the double pipes as error.

Code:
{'text'||print}

The above link gives 1, (probably for true).

Code:
{'text'|print}

The above code might give error.

Please share your feelings.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4669
Location: Hamburg / Germany

PostPosted: Thu Jun 07, 2012 12:25 pm    Post subject: Reply with quote

As Smarty3 does allow expressions almost everywhere {'text'||print} is treated as such with '||' as logical all operator.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Plugins 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