Re: [SMARTY] $smarty.template in php function

From: Date: Wed, 15 Jan 2003 22:24:40 +0000
Subject: Re: [SMARTY] $smarty.template in php function
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7214@lists.php.net to get a copy of this message
Hi, I find the problem, I forgot the dot after $smarty['template'], but I dont understand why smarty not send an error when the syntax it's wrong. I try $smarty['template'] in first but because I have no error and no template name, I think $smarty['template'] not work. $tmpIcone .= $tdTagBegin."<a href=/menu/".$smarty->_tpl_vars['MenuID']."/tpl/".$smarty['template']."/"; Sorry for my bad english. Regards. Le mer 15/01/2003 à 20:29, Juzan Jean-Michel a écrit : > Hi, > > I need to get in a function the name of an template who call the > function > I make a print_r($smarty) to see where I can find the template name but > I not found nothing > I can pass the value in params, but I think there is a best way. > > Thanks in advance. > > Regards. > > > > -- > Jean-Michel Juzan - Co-Fondateur > > Direction Informations & Technologies > eCreaSol - NetWork Creative Solutions > > Solutions personalisées pour PME & PMI > Sécurité Systèmes et Réseaux LAN/WAN GNU/linux & Open Source > > jmjuzan@ecreasol.ch > http://www.ecreasol.ch/ > > PGP public keys server : http://www.keyserver.net > > "Nous n'héritons pas la Terre de nos parents. Nous l'empruntons à nos > enfants" > Léopold Sédar Shangor -- Jean-Michel Juzan - Co-Fondateur Direction Informations & Technologies eCreaSol - NetWork Creative Solutions Solutions personalisées pour PME & PMI Sécurité Systèmes et Réseaux LAN/WAN GNU/linux & Open Source jmjuzan@ecreasol.ch http://www.ecreasol.ch/ PGP public keys server : http://www.keyserver.net "Nous n'héritons pas la Terre de nos parents. Nous l'empruntons à nos enfants" Léopold Sédar Shangor

Attachment: [application/pgp-signature] signature.asc
« previous php.smarty.general (#7214) next »