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 9 matches
Smarty Forum Index
Author Message
  Topic: modifier 'replace' with a charset/encoding parameter
sskaje

Replies: 1
Views: 10717

PostForum: Feature Requests   Posted: Wed May 11, 2011 4:15 am   Subject: modifier 'replace' with a charset/encoding parameter
I have an output in smarty like

PHP:
$smarty->assign('output', 'hello, 测试');
Smarty:
{#$output|replace:'测试':''#}


the output ...
  Topic: templateExists return false on 3.0.7
sskaje

Replies: 9
Views: 14579

PostForum: Bugs   Posted: Sun Feb 20, 2011 8:17 pm   Subject: templateExists return false on 3.0.7
if security is not enabled you can access any directory.

If security is enabled you can only access template_dir or the folders specified in secure_dir of security.

see

i see, thx
  Topic: templateExists return false on 3.0.7
sskaje

Replies: 9
Views: 14579

PostForum: Bugs   Posted: Sun Feb 20, 2011 7:39 pm   Subject: templateExists return false on 3.0.7
Sorry I did not see the leading / in your previous post.

Indead there was a change in filename parsing. There was a problem with absolute filepathes on UNIX systems which do start with / .

It's ...
  Topic: templateExists return false on 3.0.7
sskaje

Replies: 9
Views: 14579

PostForum: Bugs   Posted: Sun Feb 20, 2011 6:04 pm   Subject: templateExists return false on 3.0.7

this works before 3.0.7, but in 3.0.7, only code below works

$this->display('smarty', 'user/login');


The above code block is identiacl to the first code block in your last ...
  Topic: templateExists return false on 3.0.7
sskaje

Replies: 9
Views: 14579

PostForum: Bugs   Posted: Thu Feb 17, 2011 6:19 am   Subject: templateExists return false on 3.0.7
There was no change on templateExist() and I can't reproduce any error.

Do you have an example how you did use it?


Indeed there is a typo within the exception message. I will update the SVN ve ...
  Topic: templateExists return false on 3.0.7
sskaje

Replies: 9
Views: 14579

PostForum: Bugs   Posted: Thu Feb 17, 2011 6:04 am   Subject: templateExists return false on 3.0.7
There was no change on templateExist() and I can't reproduce any error.

Do you have an example how you did use it?


Indeed there is a typo within the exception message. I will update the SVN ve ...
  Topic: templateExists return false on 3.0.7
sskaje

Replies: 9
Views: 14579

PostForum: Bugs   Posted: Wed Feb 16, 2011 7:56 am   Subject: templateExists return false on 3.0.7
it works well on 3.0.6 but false was always returned after upgrading to 3.0.7.

and a typo:


public function __get($property_name)
{
if ($property_name == 'resou ...
  Topic: Syntax error in Smarty 3.0 && upgrade problem from R
sskaje

Replies: 2
Views: 5380

PostForum: Bugs   Posted: Fri Nov 12, 2010 8:17 am   Subject: Re: Syntax error in Smarty 3.0 && upgrade proble fro
1 Syntax error:
You guys missed a '}' at the end of smarty_internal_compile_continue.php.



Oops!


/**
* Compiles code for the {continue} tag
*
* @param arra ...
  Topic: Syntax error in Smarty 3.0 && upgrade problem from R
sskaje

Replies: 2
Views: 5380

PostForum: Bugs   Posted: Fri Nov 12, 2010 8:10 am   Subject: Syntax error in Smarty 3.0 && upgrade problem from R
1 Syntax error:
You guys missed a '}' at the end of smarty_internal_compile_continue.php.



2 Upgrade from RC4 directly would bring a fatal error
parts of debug back trace:

#1 Smarty_Inter ...
 
Page 1 of 1
All times are GMT
Jump to:  


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