Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 20 matches
Smarty Forum Index
Author Message
  Topic: Modifiers not working same as in 3.0 RC3
Michael White

Replies: 9
Views: 21072

PostForum: Smarty 3   Posted: Wed Oct 09, 2013 6:46 pm   Subject: Modifiers not working same as in 3.0 RC3
We worked around it for now by using calls like {$_noPrint=functionCall()}

but I definitely think your flag idea is a more elegant solution Smile I will keep an eye out for when that makes it in.
  Topic: Modifiers not working same as in 3.0 RC3
Michael White

Replies: 9
Views: 21072

PostForum: Smarty 3   Posted: Tue Oct 08, 2013 5:47 pm   Subject: Modifiers not working same as in 3.0 RC3
It's been a while but we ran into this again when a slightly older project showed a couple of bugs. We decided not to override the noprint modifier because we really expected that this would be fixed ...
  Topic: Smarty 3 compiled template path idea
Michael White

Replies: 3
Views: 11491

PostForum: Smarty Development   Posted: Sun May 22, 2011 3:05 pm   Subject: Smarty 3 compiled template path idea
Hi,

Today I was working on a template and it kept throwing a fatal error and I had an idea for how to get more accurate information about the actual template file causing the problem, instead of se ...
  Topic: Namespaces support
Michael White

Replies: 14
Views: 71667

PostForum: Smarty 3   Posted: Sun Apr 03, 2011 5:43 pm   Subject: Namespaces support
Namespaces will become more and more prevalent in PHP code. In essence, they are little more than a "grouping" mechanism for classes that is replacing the older workaround of a project name ...
  Topic: Modifiers not working same as in 3.0 RC3
Michael White

Replies: 9
Views: 21072

PostForum: Smarty 3   Posted: Wed Dec 22, 2010 4:45 am   Subject: Modifiers not working same as in 3.0 RC3
Thanks,

I will probably try overriding the core modifier with my own... at the moment I just removed the modifier compiler version and replaced with with the RC3 version of the plugin.


I will ...
  Topic: Modifiers not working same as in 3.0 RC3
Michael White

Replies: 9
Views: 21072

PostForum: Smarty 3   Posted: Fri Dec 10, 2010 4:17 am   Subject: Modifiers not working same as in 3.0 RC3
We often call functions and class methods directly from the templates. Many times those calls return a value such as true/false or an integer or some other value that we don't actually want to have re ...
  Topic: Modifiers not working same as in 3.0 RC3
Michael White

Replies: 9
Views: 21072

PostForum: Smarty 3   Posted: Wed Dec 08, 2010 11:38 pm   Subject: Modifiers not working same as in 3.0 RC3
Thanks,

That worked well but definitely feels hackish since it involves modifying a file in a stable release of software.

Is there any way to set up the new modifiercompiler plugins to handle PH ...
  Topic: Modifiers not working same as in 3.0 RC3
Michael White

Replies: 9
Views: 21072

PostForum: Smarty 3   Posted: Sun Dec 05, 2010 4:18 pm   Subject: Modifiers not working same as in 3.0 RC3
Hi,

I finally got a chance to try out Smarty 3.0.4 and 3.0.5 after having used RC3 since the day it was released.

It appears that modifiers no longer compile the way they did in RC3 and earlier ...
  Topic: {if $data==$data2|cat:'xx'} doesn't work in beta 6
Michael White

Replies: 8
Views: 13515

PostForum: Smarty 3   Posted: Thu Jan 14, 2010 5:49 am   Subject: {if $data==$data2|cat:'xx'} doesn't work in beta 6
I would say that the parenthetical syntax would be nice to support, but should not be required since one goal is backwards compatibility with Smarty 2 templates.
  Topic: Handling of {if tags in Smarty 3
Michael White

Replies: 7
Views: 11987

PostForum: Smarty 3   Posted: Thu Jan 14, 2010 5:46 am   Subject: Handling of {if tags in Smarty 3
This error is present in many of our templates. However, I think that being able to drop {literal} is such a bonus that we'll just fix the templates.
  Topic: Possible bug in the block function compiler
Michael White

Replies: 4
Views: 12355

PostForum: Smarty 3   Posted: Sun Nov 08, 2009 8:12 pm   Subject: Possible bug in the block function compiler
I went in an stripped out the excess code inserted within the while() loop that makes up the block in the compiled templates (both Smarty 3 and Smarty 2).

I see now that they are logically identica ...
  Topic: Possible bug in the block function compiler
Michael White

Replies: 4
Views: 12355

PostForum: Smarty 3   Posted: Sun Nov 08, 2009 5:38 pm   Subject: Possible bug in the block function compiler
hmmm....

I can accept that it is not designed for what I want it to do. Smile


I was trying to reduce the amount of template code required to do a permissions check and run different code dependin ...
  Topic: Possible bug in the block function compiler
Michael White

Replies: 4
Views: 12355

PostForum: Smarty 3   Posted: Sun Nov 08, 2009 6:43 am   Subject: Possible bug in the block function compiler
It is possible that my understanding of block function behavior is off but I have a feeling there is a bug in the block function handling in the compiler.

Here is the behavior that currently happen ...
  Topic: Feature Proposal: ability to set properties of objects
Michael White

Replies: 0
Views: 6005

PostForum: Smarty 3   Posted: Sun Nov 08, 2009 1:28 am   Subject: Feature Proposal: ability to set properties of objects
Currently I have not found a way to set a new value for an object property when working in a Smarty template file.

I was hoping something like the following would be possible:

{$myobj->t ...
  Topic: How to resolve autoload / spl conflicts?
Michael White

Replies: 5
Views: 25952

PostForum: Smarty 3   Posted: Sat Nov 07, 2009 10:44 pm   Subject: Released Smarty 3 Beta Autoloader bug.
In the version of Smarty 3 Beta (Smarty-3.0-b1) released on Oct. 31st (the download link on the downloads page - not in SVN) the Smarty.class.php script has the following on line 95:


spl_autoload ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP