|
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 |
gerard Smarty Regular
Joined: 18 Apr 2003 Posts: 84
|
Posted: Fri Jan 30, 2004 1:09 am Post subject: Alternative to cat? |
|
|
Is there an alternative to using the cat modifier?
Code: | {assign var="body_template" value="file:"|cat:$smarty.server.DOCUMENT_ROOT|cat:"/templates/articles/"|cat:$article.file} |
I thought I remember seeing you could use backticks or something to do:
Code: | {assign var="body_template" value=`file:$smarty.server.DOCUMENT_ROOT/templates/articles/$article.file`} |
|
|
Back to top |
|
andre Smarty Pro
Joined: 23 Apr 2003 Posts: 164 Location: Karlsruhe, Germany
|
Posted: Fri Jan 30, 2004 7:11 am Post subject: |
|
|
Code: | {assign var="body_template" value="file:`$smarty.server.DOCUMENT_ROOT`/templates/articles/`$article.file`"} |
Please read the manual or use the search option next time ... this is explained in each second or third thread. |
|
Back to top |
|
gerard Smarty Regular
Joined: 18 Apr 2003 Posts: 84
|
Posted: Fri Jan 30, 2004 9:54 am Post subject: |
|
|
Where's it in the docs? |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
|
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
|