Author |
Message |
Topic: @iteration not working |
ryanmc
Replies: 4
Views: 7842
|
Forum: General Posted: Thu May 30, 2013 10:29 pm Subject: @iteration not working |
No, I must have missed that part in the docs.
Is there something in smarty 2 that does the same thing? |
Topic: @iteration not working |
ryanmc
Replies: 4
Views: 7842
|
Forum: General Posted: Thu May 30, 2013 9:25 pm Subject: @iteration not working |
Sorry I wasn't paying attention and posted this to the wrong forum. If a moderator is reading this please move it to the correct forum. |
Topic: @iteration not working |
ryanmc
Replies: 4
Views: 7842
|
Forum: General Posted: Thu May 30, 2013 7:59 pm Subject: @iteration not working |
I am writing a foreach loop that looks like this
{foreach from=$results item=result}
{if 0 eq $result.is_group}
<tr id="{$results@iteration}" class="{cycle values='aRow,bRow'} ... |
Topic: Occasional Blank page after upgrading to Smarty 3 |
ryanmc
Replies: 21
Views: 21522
|
Forum: General Posted: Wed May 22, 2013 2:26 pm Subject: Occasional Blank page after upgrading to Smarty 3 |
This problem was caused by some extreme large content, so you did run into the preg backtrack_limit configured in php.ini.
To increase the limit you could change php.ini or call
ini_set('pcre. ... |
Topic: Occasional Blank page after upgrading to Smarty 3 |
ryanmc
Replies: 21
Views: 21522
|
Forum: General Posted: Mon May 20, 2013 7:03 pm Subject: Occasional Blank page after upgrading to Smarty 3 |
I am going to step through the code and see if I can find where it is having trouble.
So I stepped through the code and found where the output is being deleted. It seems to be happening in the outp ... |
Topic: Occasional Blank page after upgrading to Smarty 3 |
ryanmc
Replies: 21
Views: 21522
|
Forum: General Posted: Mon May 20, 2013 2:44 pm Subject: Occasional Blank page after upgrading to Smarty 3 |
arrmixApPayeeProperties[intApPayeeId][intApPayeeLocationId][intApPayeePropertyId] = '{$property_id}';
arrmixApPayeeProperties[intApPayeeId][intApPayeeLo ... |
Topic: Occasional Blank page after upgrading to Smarty 3 |
ryanmc
Replies: 21
Views: 21522
|
Forum: General Posted: Mon May 20, 2013 2:42 pm Subject: Occasional Blank page after upgrading to Smarty 3 |
If you say
arrmixApPayeeProperties[intApPayeeId][intApPayeeLocationId][intApPayeePropertyId] = '{$property_id}';
does not work but
arrmixApPayeeProperties=' ... |
Topic: Occasional Blank page after upgrading to Smarty 3 |
ryanmc
Replies: 21
Views: 21522
|
Forum: General Posted: Mon May 20, 2013 2:40 pm Subject: Occasional Blank page after upgrading to Smarty 3 |
If the output of the template is blank when that line is present, and it works if you change/remove it, then I would suspect you found a bug in the parser.
You are using the latest Smarty 3.x versi ... |
Topic: Occasional Blank page after upgrading to Smarty 3 |
ryanmc
Replies: 21
Views: 21522
|
Forum: General Posted: Sat May 18, 2013 1:08 pm Subject: Occasional Blank page after upgrading to Smarty 3 |
I don't think this is a Smarty problem.
In you template you are assigning values to Javascript variables like arrmixApPayeeProperties.
If you say it does work if you use arrmixApPayeeProperties= ... |
Topic: Occasional Blank page after upgrading to Smarty 3 |
ryanmc
Replies: 21
Views: 21522
|
Forum: General Posted: Sat May 18, 2013 3:04 am Subject: Occasional Blank page after upgrading to Smarty 3 |
When you say blank page, you mean absolutely no source is sent to the browser?
yes, when I do a view source it is completely blank. |
Topic: Occasional Blank page after upgrading to Smarty 3 |
ryanmc
Replies: 21
Views: 21522
|
Forum: General Posted: Fri May 17, 2013 9:20 pm Subject: Occasional Blank page after upgrading to Smarty 3 |
Scratch what I said above, after digging further I have discovered something different.
I started deleting content from my template to see if it was a error in my code that caused this.
I was a ... |
Topic: Occasional Blank page after upgrading to Smarty 3 |
ryanmc
Replies: 21
Views: 21522
|
Forum: General Posted: Fri May 17, 2013 8:38 pm Subject: Occasional Blank page after upgrading to Smarty 3 |
So I am now digging through the smarty code to figure this out and I need the help of someone smarter than I in Smarty 3 stuff.
I have opened up the compiled smarty 3 template and put echo statemen ... |
Topic: Smarty 3 SmartyCompilerException on single quote |
ryanmc
Replies: 1
Views: 7382
|
Forum: Smarty Development Posted: Fri May 17, 2013 8:10 pm Subject: Smarty 3 SmartyCompilerException on single quote |
Nevermind I found the problem. Their was an extra single quote further up in the code, once I removed it the error went away. |
Topic: Smarty 3 SmartyCompilerException on single quote |
ryanmc
Replies: 1
Views: 7382
|
Forum: Smarty Development Posted: Fri May 17, 2013 7:13 pm Subject: Smarty 3 SmartyCompilerException on single quote |
I am upgrading from smarty 2 to smarty 3 and I am running into a strange problem. It seems like Smarty 3 does not like single quotes.
For example I have this line of javascript wrapped with {liter ... |
Topic: Occasional Blank page after upgrading to Smarty 3 |
ryanmc
Replies: 21
Views: 21522
|
Forum: General Posted: Fri May 03, 2013 8:53 pm Subject: Occasional Blank page after upgrading to Smarty 3 |
check apache log for segfault?
As I said above there are no errors in the logs |
|