List Info

Thread: embedded php in a template...




embedded php in a template...
user name
2006-05-14 15:23:58
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

dcpikkle.com
           skype: callto://d3ntaku
           http://www.pikkle.com
           +81 (0)80 6521 9559

http://charajam.com$B!!!Z!z%
-%c%i"v%8%c%`!z![(B
$B?M5$%-%c%i$H(BJ-POP$B:G?7%R%C%H6J$r<+J,$GAH$_9g$o$;$
F(B
$BBT<u(BFlash$B$dCe(BFlash$B$r:n$C$A$c$*$&!*(B
_______________________________________________

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

embedded php in a template...
user name
2006-05-14 16:04:08
For translation, you could have a look at:

http://code.jell
ycan.com/langselect/

It's a really nice transaltion plugin for Smarty.

On 5/14/06, D_C <dcpikkle.com> wrote:
>
> 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
>
> dcpikkle.com
>            skype: callto://d3ntaku
>            http://www.pikkle.com
>            +81 (0)80 6521 9559
>
> http://charajam.com
$B!Z!z%-%c%i"v%8%c%`!z![(B
>
$B?M5$%-%c%i$H(BJ-POP$B:G?7%R%C%H6J$r<+J,$GAH$_9g$o$;$
F(B
>
$BBT<u(BFlash$B$dCe(BFlash$B$r:n$C$A$c$*$&!*(B
> _______________________________________________
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub
.php
>
>
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )