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 19 matches
Smarty Forum Index
Author Message
  Topic: custom resource errors case sensitive
altendew

Replies: 1
Views: 6098

PostForum: Bugs   Posted: Wed Jan 18, 2012 9:57 am   Subject: custom resource errors case sensitive
I encountered a pretty big problem the other day, my websites get pretty heavy traffic, basically the same as here:
http://www.smarty.net/forums/viewtopic.php?p=77877

However all my stuff was alre ...
  Topic: Smarty 3.1.7 for loop bug
altendew

Replies: 5
Views: 7895

PostForum: Bugs   Posted: Tue Jan 10, 2012 3:30 pm   Subject: Smarty 3.1.7 for loop bug
I compared the versions and see this code was replaced:

Smarty3.0rc3

if (isset($_attr['step'])) {
$output .= "\$_smarty_tpl->tpl ...
  Topic: Smarty 3.1.7 for loop bug
altendew

Replies: 5
Views: 7895

PostForum: Bugs   Posted: Tue Jan 10, 2012 3:27 pm   Subject: Smarty 3.1.7 for loop bug
That worked, but if that is missing should it be expected behavior to work that way?

This use to work in the Smarty3.0rc3 and I had to change around on a lot of websites to get it to work.
  Topic: Smarty 3.1.7 for loop bug
altendew

Replies: 5
Views: 7895

PostForum: Bugs   Posted: Tue Jan 10, 2012 4:46 am   Subject: Smarty 3.1.7 for loop bug
I noticed a bug with the for loop.

The following works
{for $i = 1000; $i >= 1; $i --}

The following does not work

{for $i = 1000 to 1}

The for loop does not support going backwards wh ...
  Topic: For Loop Variable Bug
altendew

Replies: 1
Views: 3997

PostForum: Bugs   Posted: Tue Nov 09, 2010 6:33 pm   Subject: For Loop Variable Bug
I am not sure if you want to consider this a bug..

But this following example doesn't work:

{for $y = {$smarty.now|date_format:'%Y'}-100 to {$smarty.now|date_format:' ...
  Topic: Use PHP sort options without returning a value.
altendew

Replies: 0
Views: 3863

PostForum: General   Posted: Sat Sep 04, 2010 7:03 pm   Subject: Use PHP sort options without returning a value.
I am using the latest release of Smarty3.

I allowed some php functions such as sort, ksort & krsort because it would be much easier to use them in the template for some stuff I am trying to do. ...
  Topic: Loop Detection
altendew

Replies: 0
Views: 6272

PostForum: Feature Requests   Posted: Thu Aug 26, 2010 3:33 pm   Subject: Loop Detection
I had a couple clients this week call and include inside of the include they were calling Rolling Eyes .

Which caused it loop and my server was unresponsive for about 20 minutes of me just figuring out ...
  Topic: Smarty3: modifier.truncate.php
altendew

Replies: 1
Views: 4575

PostForum: Bugs   Posted: Tue Jul 13, 2010 12:51 pm   Subject: Smarty3: modifier.truncate.php
I am not sure about this I had a string and I was using the truncate modifier and it always just return "...". Like it deleted my whole string.

After looking closely I saw this code

$s ...
  Topic: Smarty3.0 RC1 if decimal bug
altendew

Replies: 3
Views: 6444

PostForum: Bugs   Posted: Sun Jun 13, 2010 3:32 pm   Subject: Smarty3.0 RC1 if decimal bug
You guys are awesome
  Topic: Smarty3.0 RC1 if decimal bug
altendew

Replies: 3
Views: 6444

PostForum: Bugs   Posted: Mon Jun 07, 2010 10:07 pm   Subject: Smarty3.0 RC1 if decimal bug
Well I just made a prefilter to fix this until the bug is actually fixed.

Here is a quick fix for now:


function smarty_prefilter($tpl_source,$smarty)
{
return preg_replace( ...
  Topic: Register Resource Parameters
altendew

Replies: 2
Views: 5262

PostForum: Smarty 3   Posted: Mon Jun 07, 2010 3:37 pm   Subject: Register Resource Parameters
Well I actually don't use it like that. It's just an example.

I use it to load special files but some of the files need parameters passed. I did find a solution anyways so we can close this Smile
  Topic: Smarty3.0 RC1 if decimal bug
altendew

Replies: 3
Views: 6444

PostForum: Bugs   Posted: Sun Jun 06, 2010 8:38 pm   Subject: Smarty3.0 RC1 if decimal bug
This throws an error

{if $var>.2} .. {/if}

This does not

{if $var>1.2} .. {/if}
  Topic: Smarty3 Large Text Bug
altendew

Replies: 2
Views: 5223

PostForum: Smarty 3   Posted: Sun Jun 06, 2010 7:56 pm   Subject: Smarty3 Large Text Bug
I did this to get rid of the error:
ini_set('pcre.backtrack_limit',-1);

Maybe Smarty3 might want to use preg_last_error and catch this so the webmaster can take appropriate actions
  Topic: Smarty3 Large Text Bug
altendew

Replies: 2
Views: 5223

PostForum: Smarty 3   Posted: Sun Jun 06, 2010 7:53 pm   Subject: Smarty3 Large Text Bug
After further research its a PREG_BACKTRACK_LIMIT_ERROR error with this line:
preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)
  Topic: Smarty3 Large Text Bug
altendew

Replies: 2
Views: 5223

PostForum: Smarty 3   Posted: Sun Jun 06, 2010 7:42 pm   Subject: Smarty3 Large Text Bug
Looks like Smarty3 can't handle a lot of text. Give it a try.

My smarty template containing
"test test test test test test test test test test test test test test test test test test test tes ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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