Author |
Message |
Topic: Error after upgrading to the latest SVN vesion |
ilyalyu
Replies: 1
Views: 6738
|
Forum: Bugs Posted: Thu Oct 17, 2013 8:46 pm Subject: Error after upgrading to the latest SVN vesion |
I am getting this exception:
Exception "Missing template name" in T:\HTDOCS\CMS\core\third-party\smarty\sysplugins\smarty_internal_template.php (648)
0: Smarty_Internal_Template->__ge ... |
Topic: Linebreak after {/if} tag |
ilyalyu
Replies: 0
Views: 5652
|
Forum: Bugs Posted: Thu Oct 17, 2013 2:06 pm Subject: Linebreak after {/if} tag |
Some time ago I reported that Smarty is eating linebreak after {/if} tag, but I was told that this is expected behavior.
So, I have added prefilter that adds additional linebreaks after each {/if} ... |
Topic: {"$obj->property"} and $obj::const syntax |
ilyalyu
Replies: 1
Views: 6306
|
Forum: Bugs Posted: Thu Oct 17, 2013 1:49 pm Subject: {"$obj->property"} and $obj::const syntax |
The code {"$obj->property"} and $obj::const cause error inside smarty, while they work inside PHP. Can this be fixed? |
Topic: When do you plan next major release? |
ilyalyu
Replies: 4
Views: 13407
|
Forum: Smarty Development Posted: Fri Apr 19, 2013 1:19 pm Subject: When do you plan next major release? |
Just curious |
Topic: Modifier applied twice to nested elements |
ilyalyu
Replies: 1
Views: 18085
|
Forum: Feature Requests Posted: Fri Dec 21, 2012 10:31 pm Subject: Modifier applied twice to nested elements |
The following code:
{setfilter escape:"html"}{"{"&"}"}{/setfilter}
outputs:
&
Evidently, filter is applied first to inner string and then to outer s ... |
Topic: Assigning variable with global scope inside function |
ilyalyu
Replies: 3
Views: 9249
|
Forum: Bugs Posted: Sun Nov 25, 2012 9:40 pm Subject: Assigning variable with global scope inside function |
Should not {$x} code output this variable?
And should it contain "1" value, since I called function {f}, which assigned $x=1 in global scope? |
Topic: Assigning variable with global scope inside function |
ilyalyu
Replies: 3
Views: 9249
|
Forum: Bugs Posted: Sun Nov 25, 2012 8:05 am Subject: Assigning variable with global scope inside function |
Assigning variable with global scope inside function does not seem to work. The following code:
{function "f"}{$x=1 scope="global"}{/function}{f ... |
Topic: Call to undefine function & incorrect inline includes |
ilyalyu
Replies: 1
Views: 5974
|
Forum: Bugs Posted: Tue Nov 20, 2012 7:20 pm Subject: Call to undefine function & incorrect inline includes |
It seems that in some cases templates are included as inline with merge_compiled_includes=false and without inline flag.
I found this after I got this error "Call to undefined function content ... |
Topic: Prefilters |
ilyalyu
Replies: 4
Views: 8439
|
Forum: Bugs Posted: Sat Nov 17, 2012 3:52 pm Subject: Prefilters |
I have already found temporary fix. So, I can wait for the 3.2 version. |
Topic: Smarty inheritance |
ilyalyu
Replies: 0
Views: 8219
|
Forum: Smarty 3 Posted: Sat Nov 17, 2012 3:50 pm Subject: Smarty inheritance |
1.
Feature request: template methods (similar to class methods in c++, php, etc)
1.a. Allow to override template method in child template
1.b. Allow to define template method outside of any blo ... |
Topic: Prefilters |
ilyalyu
Replies: 4
Views: 8439
|
Forum: Bugs Posted: Thu Nov 15, 2012 8:33 pm Subject: Prefilters |
Any news here? |
Topic: Prefilters |
ilyalyu
Replies: 4
Views: 8439
|
Forum: Bugs Posted: Tue Oct 23, 2012 2:51 pm Subject: Prefilters |
In some cases I get different result when:
1. My template contains code X and I have prefilter that converts code X to code Y
and when:
2. My template contains code Y and no prefilter
Why don't yo ... |
Topic: Prepending/appending smarty blocks |
ilyalyu
Replies: 1
Views: 11395
|
Forum: Smarty 3 Posted: Fri Aug 24, 2012 8:26 pm Subject: Prepending/appending smarty blocks |
template1.html
{block 'a'}1{/block}
template2.html
{extends 'template1.html'}
{block 'a' prepend}2{/block}
template3.html
{extends 't ... |
Topic: templates with the same names from different resources |
ilyalyu
Replies: 1
Views: 5463
|
Forum: Bugs Posted: Thu Aug 09, 2012 12:08 pm Subject: templates with the same names from different resources |
Sample code:
{include 'resource1:template.tpl'}
Contents of resource1:template.tpl template:
{include 'resource2:template.tpl'}
Contents of resource2: ... |
Topic: functions in parent template (template inheritance) |
ilyalyu
Replies: 1
Views: 7927
|
Forum: Smarty 3 Posted: Fri Jul 27, 2012 9:59 pm Subject: functions in parent template (template inheritance) |
I have around 20 function definitions in parent template. These function definitions are included in each child template, which I think increases compiled templates size and decreases performance.
... |
|