Author |
Message |
Topic: isset vs. empty |
Nitek
Replies: 2
Views: 9480
|
Forum: Smarty 3 Posted: Mon Dec 06, 2010 6:16 am Subject: isset vs. empty |
Thank you! |
Topic: isset vs. empty |
Nitek
Replies: 2
Views: 9480
|
Forum: Smarty 3 Posted: Sun Dec 05, 2010 7:10 pm Subject: isset vs. empty |
I think there is a small bug in Smarty handling of PHPs empty-method:
if $test is not initialized the following happends:
{if isset($test)}
works
{if empty($test)}
also works, but produces a ... |
Topic: unknown 'registerVariableFilter' / assign and assignGlobal |
Nitek
Replies: 10
Views: 16407
|
Forum: Smarty 3 Posted: Sat Nov 13, 2010 9:26 am Subject: unknown 'registerVariableFilter' / assign and assignGlobal |
Small follow-up bug:
smarty/plugins/function.html_select_time.php trys to access $smarty but only gets $template as a paramter. |
Topic: property 'security' does not exist |
Nitek
Replies: 4
Views: 7319
|
Forum: Smarty 3 Posted: Fri Nov 12, 2010 10:55 pm Subject: property 'security' does not exist |
thank you! |
Topic: property 'security' does not exist |
Nitek
Replies: 4
Views: 7319
|
Forum: Smarty 3 Posted: Fri Nov 12, 2010 10:50 pm Subject: property 'security' does not exist |
Our code doesn't access $security (directly?). I think this my be caused by {fetch}-tags in the templates, but i do not have an explanation/idea how to solve this. |
Topic: property 'security' does not exist |
Nitek
Replies: 4
Views: 7319
|
Forum: Smarty 3 Posted: Fri Nov 12, 2010 9:35 pm Subject: property 'security' does not exist |
Since the upgrade to 3.0.1 some of our pages show the following error message:
Fatal error: Uncaught exception 'SmartyException' with message 'template property 'security' does not exist.' in /var/ ... |
Topic: unknown 'registerVariableFilter' / assign and assignGlobal |
Nitek
Replies: 10
Views: 16407
|
Forum: Smarty 3 Posted: Fri Nov 12, 2010 6:51 pm Subject: unknown 'registerVariableFilter' / assign and assignGlobal |
With Smarty3 the template object is passed as third parameter to the plugins.
If you assign to the template object the variable is only seen by the calling and its sub templates, but not by parent te ... |
Topic: unknown 'registerVariableFilter' / assign and assignGlobal |
Nitek
Replies: 10
Views: 16407
|
Forum: Smarty 3 Posted: Fri Nov 12, 2010 5:19 pm Subject: unknown 'registerVariableFilter' / assign and assignGlobal |
Variables assigned with $smarty->assign() will be seen by all templates called by $smarty->display() or $smarty->fetch() by default.
Only if you isolate templates with $smarty->createTe ... |
Topic: isCached triggers rendering? |
Nitek
Replies: 4
Views: 7142
|
Forum: Smarty 3 Posted: Wed Aug 04, 2010 12:36 pm Subject: isCached triggers rendering? |
Oh my bad - Just ignore my post, sorry. |
Topic: isCached triggers rendering? |
Nitek
Replies: 4
Views: 7142
|
Forum: Smarty 3 Posted: Wed Aug 04, 2010 10:58 am Subject: isCached triggers rendering? |
But how do i i.e. execute database-queries depending on isCached()s return value?
Example:
There is no need to fetch userdata from db when the template is cached but i have to do the query when ther ... |
Topic: Smarty 3 RC3 released |
Nitek
Replies: 38
Views: 114260
|
Forum: Smarty 3 Posted: Tue Jul 27, 2010 11:43 am Subject: Smarty 3 RC3 released |
Thats a new feature: " }" is not interpreted as a closing delimiter anymore. This allows you to have javascript-code in your templates without using literal-blocks oder {rdelim} {ldelim} con ... |
Topic: Cleaning tpl-Cache and Cache-dir |
Nitek
Replies: 12
Views: 14533
|
Forum: Smarty 3 Posted: Tue Jun 22, 2010 8:13 am Subject: Cleaning tpl-Cache and Cache-dir |
Thanks. This should do much better.
I'm not sure if i got it right, but the template itself is used to create some more subfolders, isn't it? Shouldn't it be possible to take this also into account ... |
Topic: Cleaning tpl-Cache and Cache-dir |
Nitek
Replies: 12
Views: 14533
|
Forum: Smarty 3 Posted: Mon Jun 21, 2010 4:42 pm Subject: Cleaning tpl-Cache and Cache-dir |
I am aware of this.
But im also aware of
- Smarty 2 not having this probleme
- the recursive solution being twice as fast as the iterators used now
I'm not into all the caching-details yet, but ... |
Topic: Cleaning tpl-Cache and Cache-dir |
Nitek
Replies: 12
Views: 14533
|
Forum: Smarty 3 Posted: Mon Jun 21, 2010 3:46 pm Subject: Cleaning tpl-Cache and Cache-dir |
AFAIK clear-calls are not smartys fault but ours. We are using clear to invalidate caches when data are changed. I.e. the users profile is cached using a cacheid containing the users id. When the user ... |
Topic: Cleaning tpl-Cache and Cache-dir |
Nitek
Replies: 12
Views: 14533
|
Forum: Smarty 3 Posted: Mon Jun 21, 2010 5:20 am Subject: Cleaning tpl-Cache and Cache-dir |
Filesystem is XFS so this shouldn't be the problem.
This graph shows cpu-usage before and after clearAll():
http://img687.imageshack.us/img687/4629/www2tucpuday.pngfunction dir_walk($dir) ... |
|