Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Multiline config variables: triple quotes not working

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
gawan
Smarty Rookie


Joined: 29 Apr 2003
Posts: 9

PostPosted: Wed Jun 23, 2004 9:01 am    Post subject: Multiline config variables: triple quotes not working Reply with quote

Just updated from 2.50 to 2.6.3. Triple quotes in config files are not shown anymore in templates. Is this changed in 2.6.3 or is there a bug?

---

Found the solution:

The first triple quote must be in the sama line as the name of the variable and the the '=' character.

In 2.50 this works

conf_variable =
"""
line1
line2
"""

In 2.6.3 this must be changed to

conf_variable = """
line1
line2
"""

Sorry for the wrong forum, you may move this thread to 'genera'
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General 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