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

Search found 14 matches
Smarty Forum Index
Author Message
  Topic: wordwrap modifier
gyopee

Replies: 2
Views: 6984

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: Bugs   Posted: Thu Jul 31, 2014 7:28 am   Subject: escape modifier
First problem:
I think these should be the same:

{"<i>&amp;text&amp;</i>"|escape}
{"<i>&amp;text&amp;</i>"|escape:&q ...
  Topic: escape modifier
gyopee

Replies: 4
Views: 10506

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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&# ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP