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

Modifiers - Supressing errors with @

 
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
bimal
Smarty Elite


Joined: 19 Apr 2007
Posts: 423

PostPosted: Tue Jun 22, 2010 7:20 pm    Post subject: Modifiers - Supressing errors with @ Reply with quote

I would like to suggest searching for some way to suppress to calling modifiers within the templates.

It may be rarely used, but works on php's native function calls.

For example,
Code:
{$ip|@gethostbyaddr}


Currently, it behaves differently, but it may produce the compile as what we can expect:
Code:
<?php>
...
  @gethostbyaddr($ip)
...
?>


In user defined plugins, we can supress the calls within the php codes.
But, it is not possible to do that with php's own functions.
So, it may be better to have an option for that as well.

Thanks to the development team again!
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