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

Voraussetzung für {$smarty.const}?

 
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
FrankS
Smarty n00b


Joined: 14 Aug 2012
Posts: 2

PostPosted: Thu Mar 28, 2013 2:39 pm    Post subject: Voraussetzung für {$smarty.const}? Reply with quote

Hallo zusammen,

ich baue gerade an einem Template für ein xt Modified Shop.
Ich verwende die neue Shop Version 1.06.
In dieser Version kann ich komischerweise nicht mehr per {$smarty.const} auf eine PHP Konstante zurück greifen und ich finde nicht warum.

Früher hatte ich einen Dateipfad in der Konstante:
define('MULTI_COL_LISTING_DIR', CURRENT_TEMPLATE."/module/multicol_listings");

und konnte im Template darauf zu greifen:
{assign var="multi_col_dir" value=$smarty.const.MULTI_COL_LISTING_DIR}
{include file="$multi_col_dir/5col_product.html" kind="new_products"}

Jetzt funktioniert das nicht mehr.
In {$multi_col_dir} steht nur noch als Zeichenkette "MULTI_COL_LISTING_DIR".

Habt ihr ne Idee, warum das so ist?
Liegt das evtl. an der Smarty Version? (früher Smarty_2.6.26 -> jetzt Smarty_2.6.27)


Viele Grüße
Frank

PS: Der Fehler war nicht bei Smarty zu suchen. Auf andere Konstanten kann ich über diesen Weg zugreifen.
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