Author |
Message |
Topic: Accessing class array property with variables |
pitbull82
Replies: 2
Views: 21276
|
Forum: Smarty 3 Posted: Tue Jul 29, 2014 6:11 am Subject: Accessing class array property with variables |
I'm using 3.1.19 version.
In PHP I have:
class A {
public $data = ['key1' => 'val1', 'key2' => 'key2'];
}
$smarty->assign('var','data');
$smart ... |
Topic: getCachedTimestamp - cache bug |
pitbull82
Replies: 15
Views: 25369
|
Forum: Bugs Posted: Thu Sep 22, 2011 9:24 pm Subject: getCachedTimestamp - cache bug |
It seems that's what I excpected - no warnings generated by Smarty - now it's much easier to read log and find bugs in your application (I've just found one ). Thanks! |
Topic: getCachedTimestamp - cache bug |
pitbull82
Replies: 15
Views: 25369
|
Forum: Bugs Posted: Tue Sep 20, 2011 4:36 pm Subject: getCachedTimestamp - cache bug |
Yes, I use error handlers but in my application I want to have all errors, notices and warnings in my log because they are potential problems.
My point of view is that any library I use shouldn't ... |
Topic: getCachedTimestamp - cache bug |
pitbull82
Replies: 15
Views: 25369
|
Forum: Bugs Posted: Tue Sep 20, 2011 11:15 am Subject: getCachedTimestamp - cache bug |
Hello
Is this fix in distribution directory in SVN? If so, I think that there's still a problem with caching.
I got notices:
PHP Warning (2): filemtime() [<a href='function.filemtime'>f ... |
Topic: Caching in template function doesn't work |
pitbull82
Replies: 2
Views: 6416
|
Forum: General Posted: Sat Apr 02, 2011 6:11 pm Subject: Caching in template function doesn't work |
Thanks a lot. It's working now without any problems |
Topic: Caching in template function doesn't work |
pitbull82
Replies: 2
Views: 6416
|
Forum: General Posted: Wed Mar 30, 2011 11:11 am Subject: Caching in template function doesn't work |
Hello
I have a few simple files as below.
index.php
<?php
require ('libs/Smarty.class.php');
$page = new Smarty();
$page->plugins_dir[]='plugins';
$pag ... |
Topic: Assigning when using template functions doesn't work |
pitbull82
Replies: 2
Views: 7951
|
Forum: Bugs Posted: Sun Mar 27, 2011 6:49 pm Subject: Assigning when using template functions doesn't work |
Thanks. Ok, I understand now it's not a bug. So in that case wouldn't be useful to add also appendGlobal method ? |
Topic: Groups caching |
pitbull82
Replies: 0
Views: 16737
|
Forum: Documentation Posted: Sat Mar 26, 2011 5:41 pm Subject: Groups caching |
Hello
On If you specify a $compile_id such as clearCache(null,'a|b','foo') it is treated as an appended cache group '/a/b/c/foo/'.
Shouldn't it be '/a/b/foo/' instead of '/a/b/c/foo/' ?
Best ... |
Topic: Assigning when using template functions doesn't work |
pitbull82
Replies: 2
Views: 7951
|
Forum: Bugs Posted: Sat Mar 26, 2011 5:27 pm Subject: Assigning when using template functions doesn't work |
Hello
I suppose that I found a bug. It's hard to say it in one word so I prepared very simple project to test and analyse - you may download it from http://www.mnabialek.pl/download/testsmarty.zip ... |
Topic: Template function - assigning doesn't work |
pitbull82
Replies: 1
Views: 5980
|
Forum: General Posted: Sat Mar 26, 2011 2:54 pm Subject: Template function - assigning doesn't work |
Hello
I have very strange problem.
I have a class that extend Smarty class and have a plugin
function smarty_function_topmenu($params, $template)
{
$template->assign ... |
Topic: If you’re smart, don’t use Smarty - Wrong! |
pitbull82
Replies: 2
Views: 58848
|
Forum: Testimonials Posted: Wed Mar 23, 2011 7:38 am Subject: If you’re smart, don’t use Smarty - Wrong! |
I think one of the biggest problems is Smarty performance. When you look at http://www.phpcomparison.net/ or http://www.raintpl.com/PHP-Template-Engines-Speed-Test/ you'll see that smarty in that comp ... |
Topic: Difference between v2 and v3 |
pitbull82
Replies: 2
Views: 6493
|
Forum: General Posted: Thu Jul 29, 2010 6:02 pm Subject: Difference between v2 and v3 |
That's true - I downloaded it and it's a bit more clear right now. Thanks |
Topic: Difference between v2 and v3 |
pitbull82
Replies: 2
Views: 6493
|
Forum: General Posted: Wed Jul 28, 2010 8:39 pm Subject: Difference between v2 and v3 |
Hello
I'd like to use version 3 - I didn't have time to read all posts or test earlier betas. Is there any list of differences between version 2 and 3? And is documentation for version 3 also ready ... |
Topic: Variable value from complex variable name |
pitbull82
Replies: 1
Views: 5030
|
Forum: General Posted: Mon Jan 29, 2007 5:23 pm Subject: Variable value from complex variable name |
Hello, I would like to know is it possible in Smarty displaying value from complex variable sth like $rab$nr - Where rab is only text and $nr is Smartyvariable. If $nr is 1, I would like to display in ... |
Topic: SmartyPaginate - hide one page |
pitbull82
Replies: 0
Views: 6493
|
Forum: Plugins Posted: Fri Feb 17, 2006 12:46 pm Subject: SmartyPaginate - hide one page |
Hello
I have one question connected do SmartyPaginate. Assume that I have in my database only 4 records and I want to have 6 items on page displayed. That means there's only one page. Is it possibl ... |
|