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

{$tpl.const.XXX} anstatt {$smarty.const.XXX}

 
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: German
View previous topic :: View next topic  
Author Message
eazytrader
Smarty Rookie


Joined: 16 Jul 2010
Posts: 33

PostPosted: Fri Nov 07, 2014 8:33 am    Post subject: {$tpl.const.XXX} anstatt {$smarty.const.XXX} Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sun Nov 09, 2014 1:21 am    Post subject: Reply with quote

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
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: German 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