|
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 |
eazytrader Smarty Rookie
Joined: 16 Jul 2010 Posts: 33
|
Posted: Fri Nov 07, 2014 8:33 am Post subject: {$tpl.const.XXX} anstatt {$smarty.const.XXX} |
|
|
Hallo Leute,
ist es möglich Smarty Funktionen umzubenennen?
Ich habe als Schnittstelle eine eigene Klasse zwischen meinem Projekt und Smarty. Ich würde gerne alles mit $tpl anstatt $smarty aufrufen. Das klappt auch, bis auf die Smarty eigenen Funktionen im Template. Gibt es einen einfachen Weg um das zu Lösen?
Also z.b.
{$tpl.const.XXX} anstatt {$smarty.const.XXX}
oder:
{$tpl.get.XXX} anstatt {$smarty.get.XXX}
Danke und Gruß |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Nov 09, 2014 1:21 am Post subject: |
|
|
Das $smarty in {$smarty.const.XXX} hat nichts mit dem Namen der PHP Variable des Smarty Objects zu tun. Da muss nichts geändert werden. |
|
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
|