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

Template Problem seit v3.1.0

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


Joined: 27 Dec 2011
Posts: 4

PostPosted: Tue Dec 27, 2011 12:32 pm    Post subject: Template Problem seit v3.1.0 Reply with quote

Hallo Zusammen,

ich bastel nun schon länger an einem Projekt und hatte dieses damals mit der Version 3.0.7 von Smarty begonnen. Heute wollte ich auf die aktuellste Version updaten, aber dort erhalte ich bei folgendem Aufruf immer einen Fehler:

$page_content .= $smarty->display("../../".$extension_folder.$extension_template);

Wenn ich Smarty v3.0.7 verwende, dann wird das Template korrekt angezeigt, aber ab der Version 3.1.0 nicht mehr.

Ich habe folgenden Kommentar in den Releasenotes der v3.1.0 gesehen und denke, dass dieses eventuell der Fehler sein könnte.

17/02/2011
- changed ./ and ../ behaviour

Es wäre super, wenn mir hier jemand weiterhelfen könnte. Falls noch mehr Infos benötigt werden, dann bitte melden. Ich habe die Variablen nun nicht alle mit hereingepackt, da es ja mit der v3.0.7 ohne Probleme funktioniert, weswegen ich eine falsche Pfadangabe ausschließen würde Wink

Vielen lieben Dank schon mal!

Lieben Gruß,
Matthias
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Wed Dec 28, 2011 6:31 pm    Post subject: Reply with quote

Relative Pfade mit ./ und ../ sind in $smarty->display() und $smarty->fetch() nicht mehr zulässig.

Du solltest mit $smarty->setTemplateDir(...) das richtige Verzeichnis aufsetzten, so dass Du ./ bzw. ../ nicht benötigst.
Back to top
View user's profile Send private message
matthiasb
Smarty n00b


Joined: 27 Dec 2011
Posts: 4

PostPosted: Wed Dec 28, 2011 9:31 pm    Post subject: Reply with quote

Hi U.Tews,

genau das war die Lösung! 1.000 Dank Dir und einen guten Rutsch!!

Lieben Gruß,
Matthias
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