Author |
Message |
Topic: Bug in 3.1.21 |
calguy1000
Replies: 1
Views: 7101
|
Forum: Bugs Posted: Sun Nov 23, 2014 1:02 am Subject: Bug in 3.1.21 |
This simple template fails in 3.1.21 but passes in 3.1.20
{* this code fails in smarty 3.1.21 *}
<html>
<head>
<title>Info</title>
</head>
<body>
... |
Topic: Various problems with smarty when embedded in PHAR file |
calguy1000
Replies: 5
Views: 14704
|
Forum: Bugs Posted: Tue Apr 08, 2014 8:17 pm Subject: the code |
Just to follow up.... I've attached the code I use to execute smarty (in the test phar app).
It 'finds' a temp directory, and creates a cache and templates_c directory
then instantiates smarty in ... |
Topic: Various problems with smarty when embedded in PHAR file |
calguy1000
Replies: 5
Views: 14704
|
Forum: Bugs Posted: Tue Apr 08, 2014 8:11 pm Subject: Various problems with smarty when embedded in PHAR file |
Smarty experiences various problems when embedded within a PHAR file
Versions prior to 3.1.17 would cause php segfaults in both CLI and web mode particularly if the ioncube loader php (version 4.6) ... |
Topic: Assigning plugin output to smarty var in cachable template. |
calguy1000
Replies: 11
Views: 17321
|
Forum: General Posted: Sat Jun 16, 2012 7:29 pm Subject: Assigning plugin output to smarty var in cachable template. |
DISREGARD THIS.... it screws up cachable plugins.
Update: Possible solution:
So two of us have been debugging this issue for the past few hours... and dived into the internals of smarty to figure ... |
Topic: Assigning plugin output to smarty var in cachable template. |
calguy1000
Replies: 11
Views: 17321
|
Forum: General Posted: Sat Jun 16, 2012 6:26 pm Subject: Assigning plugin output to smarty var in cachable template. |
Note that the:
<?php echo $_smarty_tpl->tpl_vars['foo']->value;?>
stuff is NOT surrounded by Smarty NoCache tags... therefore this variable IS (edited) 'cachable' even though ... |
Topic: Assigning plugin output to smarty var in cachable template. |
calguy1000
Replies: 11
Views: 17321
|
Forum: General Posted: Sat Jun 16, 2012 6:09 pm Subject: Assigning plugin output to smarty var in cachable template. |
Update: I found one minor issue with my code... the assign() param was passing FALSE, instead of TRUE....
However this has no effect on the outcome.
Here's the new code:
<?php
require_on ... |
Topic: Assigning plugin output to smarty var in cachable template. |
calguy1000
Replies: 11
Views: 17321
|
Forum: General Posted: Sat Jun 16, 2012 5:22 pm Subject: Assigning plugin output to smarty var in cachable template. |
Okay, after further testing and reading (some) of the code. The overridden createTemplate call in the mySmarty class above has no effect.
Therefore we are back to the example code in the first po ... |
Topic: Assigning plugin output to smarty var in cachable template. |
calguy1000
Replies: 11
Views: 17321
|
Forum: General Posted: Sat Jun 16, 2012 3:51 pm Subject: Assigning plugin output to smarty var in cachable template. |
I've nuked the cache/* and templates_c/* contents regularly. and repeatedly. no joy. |
Topic: Assigning plugin output to smarty var in cachable template. |
calguy1000
Replies: 11
Views: 17321
|
Forum: General Posted: Sat Jun 16, 2012 2:58 pm Subject: Assigning plugin output to smarty var in cachable template. |
Unfortunately, that makes no difference. The attached code works fine as long as caching is NOT enabled. but the moment it is enabled I get the same errors.
<?php
require_once(dirname( ... |
Topic: Assigning plugin output to smarty var in cachable template. |
calguy1000
Replies: 11
Views: 17321
|
Forum: General Posted: Fri Jun 15, 2012 4:03 pm Subject: Assigning plugin output to smarty var in cachable template. |
Update again:
Changing the template to use {capture} works fine.
<html>
<head>
</head>
<body>
{capture assign='foo'}{mytest}{/capture}
... |
Topic: Assigning plugin output to smarty var in cachable template. |
calguy1000
Replies: 11
Views: 17321
|
Forum: General Posted: Fri Jun 15, 2012 3:43 pm Subject: Assigning plugin output to smarty var in cachable template. |
Update: I realize it's a variable scoping issue, and that I've asked this question before.
However: The suggested solution (overriding the createTemplate method in smarty). Works fine as long as ... |
Topic: Assigning plugin output to smarty var in cachable template. |
calguy1000
Replies: 11
Views: 17321
|
Forum: General Posted: Fri Jun 15, 2012 2:58 pm Subject: Assigning plugin output to smarty var in cachable template. |
I am having problems with a scenario such as this:
{myplugin assign='foo'}{$foo}
Where
a: myplugin is a registered function, set to 'not cachable'.
b: Caching is enabled in smarty
c: 'f ... |
Topic: compiler tags that simulate block tags. |
calguy1000
Replies: 2
Views: 7155
|
Forum: Bugs Posted: Sat Jun 09, 2012 3:22 am Subject: compiler tags that simulate block tags. |
This code works great in smarty2.
<?php
require_once(dirname(__FILE__).'/libs/Smarty.class.php');
function mytest_open($params,$smarty) {
echo "//mytest_ ... |
Topic: compiler tags that simulate block tags. |
calguy1000
Replies: 2
Views: 7155
|
Forum: Bugs Posted: Sat Jun 09, 2012 2:23 am Subject: compiler tags that simulate block tags. |
In smarty2 I have some compiler tags that are implemented as something that looks like a block tag. i.e: {my_tag}{* some smarty code *}{/my_tag}
What they do is generate a PHP 'if' statement bas ... |
Topic: defaultPluginHandler and block plugins. |
calguy1000
Replies: 3
Views: 8105
|
Forum: Bugs Posted: Wed May 23, 2012 6:31 pm Subject: defaultPluginHandler and block plugins. |
Okay, I can see how the defaultPluginHandler is called... and that's great. it solves a different problem I was having.
However, what i really need to do is to provide the same dumb plugin (which d ... |
|