Author |
Message |
Topic: Problem when updating from 3.1.27 to 3.1.28 |
skymouse
Replies: 7
Views: 7849
|
Forum: General Posted: Sat Oct 01, 2016 1:45 pm Subject: Problem when updating from 3.1.27 to 3.1.28 |
Right, I've solved the mystery.
# Programmatically get the current index of a
# 3.1.27 version -- no longer works beyond v3.1.27
$idx = $template->getTemplateVars('smarty')[ ... |
Topic: Problem when updating from 3.1.27 to 3.1.28 |
skymouse
Replies: 7
Views: 7849
|
Forum: General Posted: Fri Sep 30, 2016 6:57 pm Subject: Problem when updating from 3.1.27 to 3.1.28 |
Ok, I'm making progress. This syntax works (at least in 3.1.27 ... I'm going to retry the upgrade shortly):
$z = $template->getTemplateVars('smarty')['section'][$i][ ... |
Topic: Problem when updating from 3.1.27 to 3.1.28 |
skymouse
Replies: 7
Views: 7849
|
Forum: General Posted: Fri Sep 30, 2016 9:31 am Subject: Problem when updating from 3.1.27 to 3.1.28 |
Still using 3.1.27, I tried
$z = $template->getTemplateVars('section')[$i]['index'];
and that gave me
Undefined index: in /usr/www/virtual/philphuk/smarty/smplugins ... |
Topic: Problem when updating from 3.1.27 to 3.1.28 |
skymouse
Replies: 7
Views: 7849
|
Forum: General Posted: Fri Sep 30, 2016 8:40 am Subject: Problem when updating from 3.1.27 to 3.1.28 |
Many thanks for replying.
Also, shouldn't that be
$z = $template->tpl_vars['section'][$i]['index'];
?
I don't know. I've had my version for ages and it has alwa ... |
Topic: Problem when updating from 3.1.27 to 3.1.28 |
skymouse
Replies: 7
Views: 7849
|
Forum: General Posted: Thu Sep 29, 2016 11:22 pm Subject: Problem when updating from 3.1.27 to 3.1.28 |
I've got some code in a plugin that has worked forever, but upgrading from 3.1.27 to 3.1.28 breaks it. Here's the part that's affected:
function smarty_function_myfunction($params, Smarty_Int ... |
Topic: 503 header wanted for smarty's error handler |
skymouse
Replies: 2
Views: 8580
|
Forum: Smarty 3 Posted: Tue May 08, 2012 11:15 pm Subject: 503 header wanted for smarty's error handler |
Many thanks - I will do it that way. |
Topic: 503 header wanted for smarty's error handler |
skymouse
Replies: 2
Views: 8580
|
Forum: Smarty 3 Posted: Sat May 05, 2012 7:44 pm Subject: 503 header wanted for smarty's error handler |
Hello,
My question is this: when Smarty's exception handling gets triggered and an error is displayed, would it be possible for the response to have a 503 HTTP status code (if no output has been ma ... |
|