For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > October 2004 > Re: [SMARTY] number_format should be standard smarty modifier









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] number_format should be standard smarty modifier
Robert Amos

2004-10-08, 3:58 pm

You can use any inbuilt php function as a smarty modifier, whats
preventing you from using that? Theres no need for a wrapper that adds
extra processing when the engine will pass it through to the php
number_format() function automagically.

-bok


On Fri, 8 Oct 2004 16:22:36 +0400 (MSD), Zoran Knezevic <zoka@hotbox.ru> wrote:
<snip>

--
Xnyo - http://xnyo.odynia.org/
Boots

2004-10-08, 8:57 pm

I Agree. Even when Smarty's security is turned on, access to the native
PHP functions can be had by whitelisting them in your setup. When it is
a straight passthru like this, I think that a modifier wrapper is going
overboard.

xo boots

--- Robert Amos <shiznatz@gmail.com> wrote:
> You can use any inbuilt php function as a smarty modifier, whats
> preventing you from using that? Theres no need for a wrapper that
> adds extra processing when the engine will pass it through to the php
> number_format() function automagically.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com