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

A ver si saben

 
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
CID
Smarty n00b


Joined: 17 Nov 2006
Posts: 4
Location: Argentina

PostPosted: Fri Dec 08, 2006 11:23 am    Post subject: A ver si saben Reply with quote

A ésto necesito hacerlo como diseñador del template, no como programador.

Cuando quiero saber si una variable está asignada, uso esto:

Code:
{if $variable}
hago algo
{/if}


Ahora bien, como puedo saber si existe una función sin que me tire warnings??

Code:
{if funcion}  <----- esto no funciona
hago algo
{/if}


Saludos.
Back to top
View user's profile Send private message Visit poster's website
hugooluisss
Smarty n00b


Joined: 11 Aug 2008
Posts: 1

PostPosted: Mon Aug 11, 2008 9:57 pm    Post subject: Re: A ver si saben Reply with quote

CID wrote:
A ésto necesito hacerlo como diseñador del template, no como programador.

Cuando quiero saber si una variable está asignada, uso esto:

Code:
{if $variable}
hago algo
{/if}


Ahora bien, como puedo saber si existe una función sin que me tire warnings??

Code:
{if funcion}  <----- esto no funciona
hago algo
{/if}


Saludos.



Pues realmente no podrias saberlo, excepto si como programador desarrollas un plugin para hacer eso o bien, le pides al programador que en una variable te asigne un valor si es que existe lo que necesitas
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