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

Objet

 
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
Guerre de Troy
Smarty Rookie


Joined: 24 Aug 2006
Posts: 6

PostPosted: Thu Aug 24, 2006 9:58 pm    Post subject: Objet Reply with quote

Bonjour,

Je n'arrive pas à afficher une de mes fonctions dans le fichier TPL

ma classe :

Code:
class c_terrain
   {
   var $num_carte;
   var $image_case;
   function __construct($num_carte,$image_case)
      {
      $this->num_carte=$num_carte;
      $this->image_carte=$image_carte;
      }
   public function aff($num)
      {
      print $this->num_carte." ".$num;
      }   
   
   }

Ce que je voudrait faire : {c_terrain->aff("toto")}
Seul la commande ci dessous marche :
{c_terrain->aff}
elle affiche :
num Array
_________________
www.guerre-de-troy.com
Back to top
View user's profile Send private message
Guerre de Troy
Smarty Rookie


Joined: 24 Aug 2006
Posts: 6

PostPosted: Thu Aug 24, 2006 10:54 pm    Post subject: Reply with quote

Au passage

Qu'elle est le code pour inclure son fichier css.tpl dans le fichier index.tpl

Si je met :
{include file="../../../css/css.tpl"}

ca plante
_________________
www.guerre-de-troy.com
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