Author |
Message |
Topic: smarty 2 and smarty 2 iterator compatibility |
apollonin
Replies: 3
Views: 10779
|
Forum: Smarty 3 Posted: Wed Nov 21, 2012 3:58 pm Subject: smarty 2 and smarty 2 iterator compatibility |
it's strange, but in _templates_ that code works good.
but when i use register_resource and then fetch string content, i get such error:
Fatal error: Cannot use string offset as an array in ... |
Topic: smarty 2 and smarty 2 iterator compatibility |
apollonin
Replies: 3
Views: 10779
|
Forum: Smarty 3 Posted: Wed Nov 21, 2012 3:07 pm Subject: smarty 2 and smarty 2 iterator compatibility |
Hi,
I'm using smarty 2 in my system. But now i'm changing it to smarty 3 step by step. so, i change templates for smarty 3 and grok for smarty 2 campability.
in many places i've code like this:
... |
Topic: html comments trouble |
apollonin
Replies: 9
Views: 17804
|
Forum: Smarty 3 Posted: Wed Oct 10, 2012 10:49 am Subject: html comments trouble |
So, finally, I have found the trouble.
It's in my system.
We recompose html styles and resources (considering they have comments). We use substr() function to do that.
So, when smarty2 compiles ... |
Topic: html comments trouble |
apollonin
Replies: 9
Views: 17804
|
Forum: Smarty 3 Posted: Wed Oct 10, 2012 9:51 am Subject: html comments trouble |
i'm using $smarty->fetch all over my project.
now i'm looking deeper into system, to find place where templates are breaking |
Topic: html comments trouble |
apollonin
Replies: 9
Views: 17804
|
Forum: Smarty 3 Posted: Tue Oct 09, 2012 4:08 pm Subject: html comments trouble |
hm...yes, i can.
here is source code:
<div class="column section-title comment_place">
Unglücklich verheiratet
</div>
<!-- .column -->
here is html code in ... |
Topic: html comments trouble |
apollonin
Replies: 9
Views: 17804
|
Forum: Smarty 3 Posted: Tue Oct 09, 2012 1:04 pm Subject: html comments trouble |
and nother strange moment:
tha source code is
<div class="column section-title">
Unglücklich verheiratet.
</div>
<!-- .column -->
but the result code is:
< ... |
Topic: html comments trouble |
apollonin
Replies: 9
Views: 17804
|
Forum: Smarty 3 Posted: Tue Oct 09, 2012 12:39 pm Subject: html comments trouble |
For example, i've got the code:
<div class="column section-title">
Leute aus Ihrer Nähe zu finden
</div>
<!-- .column -->
After smarty renders it, i see:
<div ... |
Topic: html comments trouble |
apollonin
Replies: 9
Views: 17804
|
Forum: Smarty 3 Posted: Tue Oct 09, 2012 10:00 am Subject: html comments trouble |
yes, we have pre filter, but it's a regular expression, that should not modify comments too.
function smarty_prefilter_g($tpl_source, Smarty_Internal_Template $template)
{
$tpl_s ... |
Topic: html comments trouble |
apollonin
Replies: 9
Views: 17804
|
Forum: Smarty 3 Posted: Mon Oct 08, 2012 2:14 pm Subject: html comments trouble |
Hi, we've migrated to smarty3 on our sytem, but got a trouble with old html comments in code.
Here is an example:
<!-- .column -->
but after rendering, i've got smth like that:
</<! ... |
|