Author |
Message |
Topic: Wierd bug (spl_ce_RuntimeException) |
alan
Replies: 1
Views: 5118
|
Forum: General Posted: Mon Mar 05, 2007 8:02 pm Subject: Wierd bug (spl_ce_RuntimeException) |
Okay, this has got me stumped... I've got a simple site which uses the MySQLi interface to gather data from a set of tables (populated via a php cron job) which is exceeding the max-execution time lim ... |
Topic: Smarty Caching Database Templates |
alan
Replies: 4
Views: 9127
|
Forum: General Posted: Fri Dec 29, 2006 8:04 am Subject: Smarty Caching Database Templates |
Sounds like you don;t fully understand the Smarty concept...
First of all, I would recommend creating a site using the standard file-based template architecture. Once you are happy with how that wo ... |
Topic: Trouble with error handling |
alan
Replies: 6
Views: 10047
|
Forum: General Posted: Wed Dec 13, 2006 8:50 pm Subject: Trouble with error handling |
Not an ideal solution as I've looked at this before... Smarty already uses the ob_xxx() functions which means that a careful check has to be made to ensure that the same thing does not happen.
Sayi ... |
Topic: Trouble with error handling |
alan
Replies: 6
Views: 10047
|
Forum: General Posted: Tue Dec 12, 2006 7:04 pm Subject: Trouble with error handling |
My error handling initialization is:class API_Exception extends Exception
{
public static function errorHandlerCallback( $code, $string, $file, $line, $context )
{
$e = new s ... |
Topic: Trouble with error handling |
alan
Replies: 6
Views: 10047
|
Forum: General Posted: Tue Dec 12, 2006 1:58 pm Subject: Trouble with error handling |
I know this may be off-topic, but perhaps other smarty users have encountered this problem and come up with a solution...
I've been having some trouble with error-handling on a smarty driven site. ... |
Topic: Trouble with quotation marks |
alan
Replies: 2
Views: 6192
|
Forum: General Posted: Tue Apr 25, 2006 10:05 am Subject: Trouble with quotation marks |
Ahem, yes it does say that in the manual.... |
Topic: Trouble with quotation marks |
alan
Replies: 2
Views: 6192
|
Forum: General Posted: Tue Apr 25, 2006 4:17 am Subject: Trouble with quotation marks |
I'm having a little problem with this one:
{myfunc param="/page.php?q=$c.value|default:$def"}
Now, 'myfunc' is just a simple smarty (function) plugin which takes one para ... |
Topic: Retrieving information from a cached template? |
alan
Replies: 2
Views: 6041
|
Forum: General Posted: Mon Apr 24, 2006 1:45 am Subject: Another question along similar lines... |
I've got a {insert} for my "Product of the Day" block in my eShop package; the reason it's an insert is that I have to check to make sure that the product is still in stock - after all, there's little ... |
Topic: debug console won't turn off |
alan
Replies: 5
Views: 23127
|
Forum: General Posted: Sun Apr 23, 2006 12:04 pm Subject: debug console won't turn off |
After running my own logging error handler, I discovered that Smarty was generating various errors/warnings/notices including this one:
E_NOTICE Undefined index: SMARTY_DEBUG in Smarty.class.php o ... |
Topic: Retrieving information from a cached template? |
alan
Replies: 2
Views: 6041
|
Forum: General Posted: Fri Apr 21, 2006 3:44 am Subject: Retrieving information from a cached template? |
In my e-commerce application, I have a set of informative documents -- about us, terms & conditions, help, faqs etc -- that I store in a database.
Now, as I have caching enabled across the board, a ... |
Topic: Insert / Caching Problem |
alan
Replies: 2
Views: 7858
|
Forum: General Posted: Mon Apr 17, 2006 11:53 am Subject: Insert / Caching Problem |
Thanks messju, I've now extended my own smarty object with the following two functions:
function push_cache( $caching = null, $cache_lifetime = null )
{
$this->_cacheStack[ ... |
Topic: Insert / Caching Problem |
alan
Replies: 2
Views: 7858
|
Forum: General Posted: Sun Apr 16, 2006 9:05 pm Subject: Insert / Caching Problem |
I'm written a complete shopping cart system, and recently altered the front end to use Smarty, however I'm having problems with inserts being cached...
One of my insert functions is as follows:
... |
Topic: Using fetch within a function |
alan
Replies: 1
Views: 4586
|
Forum: General Posted: Sat Apr 08, 2006 11:03 am Subject: Using fetch within a function |
Is it considered acceptable to use a fetch call within a function?
For example, I have a calendar.tpl which (oddly enough) displays a calendar, but in order to display any meaningfull data within i ... |
Topic: Caching of Resources? |
alan
Replies: 0
Views: 4237
|
Forum: General Posted: Mon Apr 03, 2006 2:15 pm Subject: Caching of Resources? |
I've got a set of resources all loaded from a central class and whilst most of the resources are relatively static (only changing when the user had changed preferences or configuration), there are a f ... |
Topic: Best Plugin Practices? |
alan
Replies: 2
Views: 5306
|
Forum: General Posted: Sun Apr 02, 2006 8:03 pm Subject: Best Plugin Practices? |
They are in fact blocks in a sidebar. Each block can perform a variety of tasks, the most obvious being just displaying some simple text, the more complex containing data from a data query, and capabl ... |
|