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

objets imbriqués

 
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: French
View previous topic :: View next topic  
Author Message
radioharris
Smarty n00b


Joined: 26 May 2008
Posts: 1

PostPosted: Mon May 26, 2008 10:02 pm    Post subject: objets imbriqués Reply with quote

Salut,

J'ai un objet $Event qui contient lui même un objet $Tournoi comme propriété. J'aimerais afficher le nom du tournoi sur mon site, alors je fais :

{$Event->getTournament()->getName()}

Malheureusement, cette instruction ne marche pas, smarty m'affiche l'erreur suivante :

Fatal error: Smarty error: [in includes/gauche.tpl line 3]: syntax error: unrecognized tag: $Event->getTournament()->getName() (Smarty_Compiler.class.php, line 446) in...

Quelqu'un a t-il une idée ?

Merci !
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: French 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