|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Guerre de Troy Smarty Rookie
Joined: 24 Aug 2006 Posts: 6
|
Posted: Thu Aug 24, 2006 9:58 pm Post subject: Objet |
|
|
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 |
|
Guerre de Troy Smarty Rookie
Joined: 24 Aug 2006 Posts: 6
|
Posted: Thu Aug 24, 2006 10:54 pm Post subject: |
|
|
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 |
|
|
|
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
|