Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 36 matches
Smarty Forum Index
Author Message
  Topic: Declaring a variable late in the template
trparky

Replies: 7
Views: 10154

PostForum: General   Posted: Sun Feb 19, 2012 7:25 pm   Subject: Declaring a variable late in the template
Thanks! I did just that and it works wonderfully. I didn't even know that this was possible.
  Topic: Declaring a variable late in the template
trparky

Replies: 7
Views: 10154

PostForum: General   Posted: Sun Feb 19, 2012 5:00 pm   Subject: Declaring a variable late in the template
I have a system in which I have a main template, that template is the core of the page. Later in that same template I include another template.

Kind of like this...
<html>
<head>
&l ...
  Topic: Wrong documentation on Smarty 3 Clear Cache docs
trparky

Replies: 2
Views: 7083

PostForum: Smarty 3   Posted: Sun Nov 28, 2010 2:57 pm   Subject: Wrong documentation on Smarty 3 Clear Cache docs
http://www.smarty.net/docs/en/api.clear.cache.tpl
That page has wrong documentation to clear the cache of a template.

It should be
$smarty->clearCache('index.tpl');
Not
$smarty->cache-> ...
  Topic: Smarty 3 Beta and a production environment
trparky

Replies: 1
Views: 4051

PostForum: Smarty 3   Posted: Wed Nov 10, 2010 4:39 pm   Subject: Smarty 3 Beta and a production environment
Yeah yeah, I know... everyone says that you shouldn't run beta code in a production environment but I decided to throw caution to the wind and went with it anyways. I have the latest RC of Smarty 3 r ...
  Topic: EVAL with built-in exception handling
trparky

Replies: 1
Views: 4566

PostForum: Smarty 3   Posted: Wed Nov 10, 2010 4:33 pm   Subject: EVAL with built-in exception handling
I've been wondering if the EVAL function of Smarty 3 can have exception handling added to it so that if a piece of EVALed data can't be compiled properly and ran it would just skip over that part and ...
  Topic: CSS Element ID Patch for html_select_date function
trparky

Replies: 14
Views: 24455

PostForum: Smarty 3   Posted: Thu Jul 01, 2010 6:21 pm   Subject: CSS Element ID Patch for html_select_date function
Any way we can have this patch merged into the official release code? I can't be the only one that needs this particular patched module.
  Topic: SMARTY Debugging
trparky

Replies: 1
Views: 9003

PostForum: Help Wanted (commercial)   Posted: Thu Jun 10, 2010 1:52 am   Subject: SMARTY Debugging
Can I ask what errors you are receiving?
  Topic: {assign} in Smarty3 not working as expected
trparky

Replies: 5
Views: 16739

PostForum: Smarty 3   Posted: Thu Jun 10, 2010 1:46 am   Subject: {assign} in Smarty3 not working as expected
Sounds like you are trying to put too much logic in the display layer. Try doing the assigning of data before you display the parent template so that you don't make assign calls in the template code. ...
  Topic: CSS Element ID Patch for html_select_date function
trparky

Replies: 14
Views: 24455

PostForum: Smarty 3   Posted: Thu Jun 10, 2010 1:40 am   Subject: CSS Element ID Patch for html_select_date function
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/

/**
* Smarty {html_select_date} plugin
*
* Type: function<br>
* Name: h ...
  Topic: Nocache doesn't work at all in RC1
trparky

Replies: 22
Views: 28189

PostForum: Smarty 3   Posted: Tue May 25, 2010 4:43 pm   Subject: Nocache doesn't work at all in RC1
Yeah, I figured that there would be a bit of a performance hit so I'm going to use it very sparingly. I have it so that it's only used once in one page on the site so I don't think I'm going to see t ...
  Topic: Nocache doesn't work at all in RC1
trparky

Replies: 22
Views: 28189

PostForum: Smarty 3   Posted: Mon May 24, 2010 7:40 pm   Subject: Nocache doesn't work at all in RC1
As of right now, I have your code working along with my modifications to it and it appears that it's working properly but only time will tell.
  Topic: Nocache doesn't work at all in RC1
trparky

Replies: 22
Views: 28189

PostForum: Smarty 3   Posted: Mon May 24, 2010 7:13 pm   Subject: Nocache doesn't work at all in RC1
Alright, it appears that the hacks that I added to make timeouts possible works. What do you think?

function smarty_block_module_cache($params, $content, &$smarty, &$repeat) { ...
  Topic: Nocache doesn't work at all in RC1
trparky

Replies: 22
Views: 28189

PostForum: Smarty 3   Posted: Mon May 24, 2010 6:38 pm   Subject: Nocache doesn't work at all in RC1
Lemon Juice, any way to put an automatic timeout for cached items?
  Topic: Nocache doesn't work at all in RC1
trparky

Replies: 22
Views: 28189

PostForum: Smarty 3   Posted: Mon May 24, 2010 2:16 am   Subject: Nocache doesn't work at all in RC1
Sent you another email.
  Topic: Nocache doesn't work at all in RC1
trparky

Replies: 22
Views: 28189

PostForum: Smarty 3   Posted: Mon May 24, 2010 12:59 am   Subject: Nocache doesn't work at all in RC1
Yes, I send the email with the file attached.
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP