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

Pasar funciones como attributo de una funcion en smarty

 
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 -> Language: Spanish
View previous topic :: View next topic  
Author Message
ipurbeltz
Smarty n00b


Joined: 22 Nov 2006
Posts: 1

PostPosted: Wed Nov 22, 2006 11:44 am    Post subject: Pasar funciones como attributo de una funcion en smarty Reply with quote

aupa!

Estoy trabajando con unas funciones que llamo desde smarty (las he registrado con register_function y me funcionan).

El caso es el siguiente: Se le puede pasar en un atributo una función? Por ejemplo... Tenemos 2 funciones:(lo escribo bástamente, xDD)

{funcion1 var1="loquesea"}
{funcion2 var2="loquesea"} //las dos funciones nos devuelven valores

Como se podría hacer lo siguiente? (esta claro que así no funciona):

{funcion1 var1="{funcion2 var2="otracosa"}"}

Es decir, que el valor que me devuelve la funcion 2 la pueda usar dentro del attibuto que mando en la función1...

No se si me he explicado Embarassed

Bueno, a ver si alguien sabe si se puede hacer o alguna forma de poder hacer esto.

Gracias de antemano!
Back to top
View user's profile Send private message
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 -> Language: Spanish 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