Author |
Message |
Topic: wordwrap modifier |
gyopee
Replies: 2
Views: 6984
|
Forum: Bugs Posted: Fri Aug 01, 2014 7:42 am Subject: wordwrap modifier |
Another question about the same modifier:
Why is this input:
{"randomstring"|wordwrap:1:".":true}
generates this output?:
.r.a.n.d.o.m.s.t.r.i.n.g
Wh ... |
Topic: wordwrap modifier |
gyopee
Replies: 2
Views: 6984
|
Forum: Bugs Posted: Fri Aug 01, 2014 7:24 am Subject: wordwrap modifier |
Can you tell me please whether this code works as expected or not?
Input:
{assign var="str" value="apple apple apple apple apple apple apple apple apple apple apple apple apple ... |
Topic: unescape modifier |
gyopee
Replies: 0
Views: 16384
|
Forum: Documentation Posted: Fri Aug 01, 2014 6:40 am Subject: unescape modifier |
Please expand the documentation by writing in it that for the first parameter of unescape modifier has an 'url' possible value as well, and 'entity' value has the same behavior as 'htmlall'.
Thanks ... |
Topic: escape modifier |
gyopee
Replies: 4
Views: 10506
|
Forum: Bugs Posted: Thu Jul 31, 2014 4:55 pm Subject: escape modifier |
You are absolutely right.
Thank you and sorry for my inattention. |
Topic: strip modifier |
gyopee
Replies: 1
Views: 16367
|
Forum: Documentation Posted: Thu Jul 31, 2014 7:50 am Subject: strip modifier |
It replaces all spaces (not just repeated ones) with the supplied string. |
Topic: string_format modifier |
gyopee
Replies: 1
Views: 16070
|
Forum: Documentation Posted: Thu Jul 31, 2014 7:42 am Subject: string_format modifier |
The example says:
For this:
{$number}
{$number|string_format:"%.2f"}
{$number|string_format:"%d"}
It's:
23.5787446
23.58
24
... |
Topic: escape modifier |
gyopee
Replies: 4
Views: 10506
|
Forum: Bugs Posted: Thu Jul 31, 2014 7:28 am Subject: escape modifier |
First problem:
I think these should be the same:
{"<i>&text&</i>"|escape}
{"<i>&text&</i>"|escape:&q ... |
Topic: escape modifier |
gyopee
Replies: 4
Views: 10506
|
Forum: Bugs Posted: Wed Jul 30, 2014 10:39 am Subject: escape modifier |
Hi,
1. For this input:
{"<i>text</i>"}
I expect this html output:
text
2. For this input:
{"<i>text</i>"|escape}
I expect this htm ... |
Topic: fetch bug |
gyopee
Replies: 2
Views: 7497
|
Forum: Bugs Posted: Thu Jan 30, 2014 7:03 pm Subject: fetch bug |
Yes, you are right.
My bad. |
Topic: fetch bug |
gyopee
Replies: 2
Views: 7497
|
Forum: Bugs Posted: Thu Jan 30, 2014 8:29 am Subject: fetch bug |
In case I'd like to fetch a php file, Smarty {fetch} function returns a weird result.
For example:
PHP to fetch:
<?php
require_once 'libs/Smarty.class.php';
$smarty = new Smarty() ... |
Topic: debugging window <=> var scope |
gyopee
Replies: 2
Views: 4674
|
Forum: General Posted: Thu Jan 30, 2014 6:36 am Subject: debugging window <=> var scope |
Okay, thank you. |
Topic: debugging window <=> var scope |
gyopee
Replies: 2
Views: 4674
|
Forum: General Posted: Wed Jan 29, 2014 7:37 am Subject: debugging window <=> var scope |
When I assign a variable in the template (or even in php) the debugging window always tells me that the scope of the variable is "Smarty root" even if I change the scope to global like {$var ... |
Topic: calling function of smarty variable in onclick of button |
gyopee
Replies: 1
Views: 7988
|
Forum: General Posted: Mon Jan 27, 2014 11:21 am Subject: calling function of smarty variable in onclick of button |
Smarty template codes are executed before the client sees anything from your template.
So that, you cannot set a Smarty function to listen to a user action (the Smarty function is already evaluated w ... |
Topic: createData question |
gyopee
Replies: 1
Views: 3383
|
Forum: General Posted: Mon Jan 27, 2014 10:29 am Subject: createData question |
Hey,
After using this code, I'm expecting foo to be a template variable holding value 'data' and bar holding 'bar-data'.
<?php
require_once 'libs/Smarty.class.php';
$smarty = new Smarty ... |
|