Author |
Message |
Topic: Smarty 3 and Memcache |
rodneyrehm
Replies: 29
Views: 46470
|
Forum: General Posted: Mon Feb 11, 2013 10:59 am Subject: Smarty 3 and Memcache |
I made my Smarty_CacheResource_Memcache class a little different from one in the exmaple, also I changed constructor, to support memcache object as parameter, If I supply the object to registerCacheRe ... |
Topic: Smarty 3 and Memcache |
rodneyrehm
Replies: 29
Views: 46470
|
Forum: General Posted: Mon Feb 11, 2013 9:27 am Subject: Re: not working |
I just did it like that:
$smarty->registerCacheResource('memcache', new Smarty_CacheResource_Memcache ($myMemcacheInstance));
But that doesn't address my problem
well, ... |
Topic: Smarty 3 and Memcache |
rodneyrehm
Replies: 29
Views: 46470
|
Forum: General Posted: Mon Feb 11, 2013 9:09 am Subject: Re: not working |
what is this supposed to do?
Smarty_CacheResource_Memcache::$memcache = $memcache;
If you want to pass in an existing memcache instance, extend the memcache class:
class MyMemcacheThi ... |
Topic: filemtime() [function.filemtime]: stat failed |
rodneyrehm
Replies: 15
Views: 50931
|
Forum: General Posted: Wed Nov 14, 2012 2:23 pm Subject: filemtime() [function.filemtime]: stat failed |
Can someone give me a hint? Thx!
[url=http://www.smarty.net/docs/en/api.mute.expected.errors.tpl]muteExpectedErrors() |
Topic: <b>Fatal error</b>: Call to undefined function |
rodneyrehm
Replies: 8
Views: 32280
|
Forum: Smarty 3 Posted: Wed Nov 07, 2012 8:08 pm Subject: <b>Fatal error</b>: Call to undefined function |
Yeah, we've figured out that part and already fixed it in 3.1.12! |
Topic: Fatal error: Call to undefined function content_... |
rodneyrehm
Replies: 10
Views: 34891
|
Forum: Bugs Posted: Sun Nov 04, 2012 10:47 am Subject: Fatal error: Call to undefined function content_... |
We'll have to find another solution for op-code cache invalidation. The loaded file itself can alter the state of mustCompile (depending on the time the file was cached when $caching === Smarty::CACHI ... |
Topic: modifier fix_http |
rodneyrehm
Replies: 2
Views: 8606
|
Forum: Plugins Posted: Tue Sep 18, 2012 2:32 pm Subject: modifier fix_http |
I'd probably prefer something along the lines of:
function smarty_modifier_scheme($string)
if (!preg_match('#^[a-zA-Z0-9-]://#', $string)) {
return ... |
Topic: Next major release |
rodneyrehm
Replies: 2
Views: 4219
|
Forum: General Posted: Tue Sep 18, 2012 9:23 am Subject: Next major release |
While we cannot tell WHEN 3.2 is ready, you can see what we've already done in the [url=https://code.google.com/p/smarty-php/source/browse/branches/Smarty_3_2_DEV/distribution/change_log.txt]changelog ... |
Topic: date_format missing parameter |
rodneyrehm
Replies: 2
Views: 20773
|
Forum: Documentation Posted: Mon Sep 17, 2012 11:52 am Subject: date_format missing parameter |
urm… what? |
Topic: getTemplateVars('var.dot.notation') |
rodneyrehm
Replies: 3
Views: 5906
|
Forum: General Posted: Thu Sep 13, 2012 6:58 am Subject: getTemplateVars('var.dot.notation') |
At the moment there is not, no. What do you need this feature for and why should we implement it in the future? ![Smile](images/smiles/icon_smile.gif) |
Topic: Smarty 2 to 3: error with relative path |
rodneyrehm
Replies: 5
Views: 9355
|
Forum: General Posted: Fri Aug 31, 2012 4:15 pm Subject: Smarty 2 to 3: error with relative path |
Just linking to [url=http://code.google.com/p/smarty-php/issues/detail?id=114]Issue 114 |
Topic: Smarty 2 to 3: error with relative path |
rodneyrehm
Replies: 5
Views: 9355
|
Forum: General Posted: Tue Aug 28, 2012 8:34 am Subject: Smarty 2 to 3: error with relative path |
I think I see the problem.
In Smarty2 ../foo/bar.tpl was resolved against template_dir. This is not possible in Smarty3, as you can have multiple template_dir values. Smarty3 resolves relative path ... |
Topic: Smarty 2 to 3: error with relative path |
rodneyrehm
Replies: 5
Views: 9355
|
Forum: General Posted: Mon Aug 27, 2012 5:07 pm Subject: Smarty 2 to 3: error with relative path |
Which version of Smarty are you using? PHP Version? Operating System?
(This works fine on my machine… Smarty 3.1.11, PHP 5.3.15, Mac) |
Topic: auto_literal disable do not work in inheritance template? |
rodneyrehm
Replies: 5
Views: 10834
|
Forum: Bugs Posted: Wed Aug 22, 2012 6:40 am Subject: auto_literal disable do not work in inheritance template? |
(a corresponding PHPunit test is now added)
yesssss! ![Smile](images/smiles/icon_smile.gif) |
Topic: whitespacefilter removing js code |
rodneyrehm
Replies: 6
Views: 11021
|
Forum: Bugs Posted: Fri Aug 17, 2012 7:10 pm Subject: whitespacefilter removing js code |
What would be nice is if you could pass parameters via registerFilter(). Then you could easily allow for people to select what to trim. However, that would require changes to core.
I was thinking a ... |
|