Author |
Message |
Topic: How to create a plain function for use in {if}? |
Lemon Juice
Replies: 1
Views: 3528
|
Forum: General Posted: Tue Feb 07, 2017 10:33 am Subject: How to create a plain function for use in {if}? |
I need to create a function for use in {if} structures in my templates and I can't find anything out of the available plug-in features that would make this easy. Twig appears to have this feature and ... |
Topic: Error when accessing class contants from object |
Lemon Juice
Replies: 2
Views: 4981
|
Forum: General Posted: Thu Oct 30, 2014 8:19 am Subject: Error when accessing class contants from object |
Many thanks, it works now!
BTW, are you moving to git with your project? |
Topic: Error when accessing class contants from object |
Lemon Juice
Replies: 2
Views: 4981
|
Forum: General Posted: Sat Oct 25, 2014 9:28 pm Subject: Error when accessing class contants from object |
I have a need to access class constants from an object like this:
{$object::CONST}
I have found an old discussion at https://groups.google.com/forum/#!msg/smarty-developers/-We ... |
Topic: Namespaced Smarty instance |
Lemon Juice
Replies: 1
Views: 8370
|
Forum: Installation and Setup Posted: Thu Oct 23, 2014 2:39 pm Subject: Namespaced Smarty instance |
I was wondering if there are any plans for releasing namespaced smarty for phph 5.3+? I once had a need to have objects of separate Smarty versions because I was embedding a library from one project i ... |
Topic: Can I create block function to act as a prefilter? |
Lemon Juice
Replies: 4
Views: 5845
|
Forum: General Posted: Wed Dec 19, 2012 10:58 pm Subject: Can I create block function to act as a prefilter? |
Okay, thanks! |
Topic: Can I create block function to act as a prefilter? |
Lemon Juice
Replies: 4
Views: 5845
|
Forum: General Posted: Wed Dec 19, 2012 10:38 pm Subject: Can I create block function to act as a prefilter? |
Yes, I know I can use regular expressions but they are not 100% bullet-proof since the tags can potentially be part of a quotet text, etc. I think I'll use them for now if that's the only way.
Woul ... |
Topic: Can I create block function to act as a prefilter? |
Lemon Juice
Replies: 4
Views: 5845
|
Forum: General Posted: Wed Dec 19, 2012 6:16 pm Subject: Can I create block function to act as a prefilter? |
I'd like to register a block function but in a way that it is executed only once before the template is compiled, is this possible? I can't find anything like this in the documentation but I know Smar ... |
Topic: Fatal error: Call to undefined function content_... |
Lemon Juice
Replies: 10
Views: 35039
|
Forum: Bugs Posted: Wed Jul 04, 2012 12:35 pm Subject: Fatal error: Call to undefined function content_... |
Thanks, I'll be watching this. For now I think I'll have to clear all compiled templates after each update as a workaround. |
Topic: Fatal error: Call to undefined function content_... |
Lemon Juice
Replies: 10
Views: 35039
|
Forum: Bugs Posted: Wed Jul 04, 2012 9:08 am Subject: Fatal error: Call to undefined function content_... |
Have you deleted the compiled templates after upgrading? Otherwise the new smarty-version simply couldn't understand the old compiled templates.
Sure. Besides, the problem occurs even when I don't do ... |
Topic: Fatal error: Call to undefined function content_... |
Lemon Juice
Replies: 10
Views: 35039
|
Forum: Bugs Posted: Wed Jul 04, 2012 7:02 am Subject: Fatal error: Call to undefined function content_... |
I've been experiencing a strage problem with Smarty on one site for a few months - first it was 3.1RC but last week I upgraded to 3.1.10 and it's still there. After I upload new tpl files to the serve ... |
Topic: 3.1dev: How do I register cache resource? |
Lemon Juice
Replies: 10
Views: 14862
|
Forum: Smarty Development Posted: Wed Aug 17, 2011 12:56 pm Subject: 3.1dev: How do I register cache resource? |
Okay, I see. Thanks for the explanatioin, I got it to work now! |
Topic: 3.1dev: How do I register cache resource? |
Lemon Juice
Replies: 10
Views: 14862
|
Forum: Smarty Development Posted: Wed Aug 17, 2011 12:07 pm Subject: 3.1dev: How do I register cache resource? |
It is returning content and the content is printed to the browser but just after it the error message appears.
My cache resource is very primitive for testing purposes only, but I think it should w ... |
Topic: 3.1dev: How do I register cache resource? |
Lemon Juice
Replies: 10
Views: 14862
|
Forum: Smarty Development Posted: Wed Aug 17, 2011 11:31 am Subject: 3.1dev: How do I register cache resource? |
The is no cached template produced by smarty (yet), there is only one compiled template, here are the headers:
<?php /* Smarty version Smarty 3.1-DEV, created on 2011-08-17 13:28:13
... |
Topic: 3.1dev: How do I register cache resource? |
Lemon Juice
Replies: 10
Views: 14862
|
Forum: Smarty Development Posted: Wed Aug 17, 2011 11:19 am Subject: 3.1dev: How do I register cache resource? |
Thanks for the fix! Now I get another error whenever the $mtime returned by fetch() is less than cache_lifetime:
Fatal error: Function name must be a string in C:\www\mysite\lib\smarty\sysplugins\sma ... |
Topic: 3.1dev: How do I register cache resource? |
Lemon Juice
Replies: 10
Views: 14862
|
Forum: Smarty Development Posted: Wed Aug 17, 2011 10:49 am Subject: 3.1dev: How do I register cache resource? |
Thanks, that seems to recognise my plugin but I think there is a bug because I get this error:
Warning: Missing argument 6 for Smarty_CacheResource_Mycache::fetch(), called in C:\www\mysite\lib\sma ... |
|