|
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 |
Adhi Arunkumar Smarty n00b
Joined: 08 Jun 2018 Posts: 1
|
Posted: Fri Jun 08, 2018 4:10 am Post subject: Why some modifiers syntax is not working? |
|
|
Below is the example referred from "chapter 5-variable modifiers" in that "indent" is one of the syntax.
what is my question is! I copied the exact code and paste it and runned it. but i doesn't output me which was been given.
PHP code:
$smarty->assign('doorDie',
'NJ judge to rule on nude beach.
Sun or rain expected today, dark tonight.
Statistics show that teen pregnancy drops off significantly after 25.'
);
tpl:
{$articleTitle}
{$articleTitle|indent}
{$articleTitle|indent:10}
{$articleTitle|indent:1:"\t"}
Output to be displayed:
NJ judge to rule on nude beach.
Sun or rain expected today, dark tonight.
Statistics show that teen pregnancy drops off significantly after 25.
NJ judge to rule on nude beach.
Sun or rain expected today, dark tonight.
Statistics show that teen pregnancy drops off significantly after 25.
NJ judge to rule on nude beach.
Sun or rain expected today, dark tonight.
Statistics show that teen pregnancy drops off significantly after 25.
NJ judge to rule on nude beach.
Sun or rain expected today, dark tonight.
Statistics show that teen pregnancy drops off significantly after 25.
What i get displayed!
NJ judge to rule on nude beach. Sun or rain expected today, dark tonight. Statistics show that teen pregnancy drops off significantly after 25.
NJ judge to rule on nude beach. Sun or rain expected today, dark tonight. Statistics show that teen pregnancy drops off significantly after 25.
NJ judge to rule on nude beach. Sun or rain expected today, dark tonight. Statistics show that teen pregnancy drops off significantly after 25.
NJ judge to rule on nude beach. Sun or rain expected today, dark tonight. Statistics show that teen pregnancy drops off significantly after 25.
So, please help. I am using smarty version 3.1.30.
Thanks is advance. [/b] |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Fri Jun 08, 2018 6:06 pm Post subject: |
|
|
What are you using to view the output?
If a text editor, there should be white sapce and line endings.
If a web browser, leading white space and most line endings are removed. Elsewhere, sequences of white space and line endings are collapsed into a single space. Have your browser show you the source content. The source view should display with all white space formatting applied. |
|
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
|