embedded php in a template...

From: Date: Sun, 14 May 2006 15:23:58 +0000
Subject: embedded php in a template...
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13426@lists.php.net to get a copy of this message
hi list - seems there is a GNU extension for handling text translation strings... is there a high-performance way to call out to this from within smarty templates? eg inside a template i need to call php. instead of -------- name: {$userName} all i can immediately think of is passing in a php object to smarty that can access the gettext function... but this takes a lot of space + I'm sure has call overhead: {$phpObj->getText("name")} {$userName} is ther a way to do a smarty filter that you can pass in a string (not a variable) to ? { "userName"|getText } i cant really think of a good way of combining smarty + php ... tx, /dc _______________________________________________
          David "DC" Collier
dc@pikkle.com
          skype: callto://d3ntaku
          http://www.pikkle.com
          +81 (0)80 6521 9559
http://charajam.com 【★キャラ♪ジャム★】 人気キャラとJ-POP最新ヒット曲を自分で組み合わせて 待受Flashや着Flashを作っちゃおう! _______________________________________________

« previous php.smarty.general (#13426) next »