Author |
Message |
Topic: Requirment to clear compiled templates when upgading Smarty |
jarofgreen
Replies: 2
Views: 8492
|
Forum: Smarty Development Posted: Mon Mar 12, 2012 1:28 pm Subject: Requirment to clear compiled templates when upgading Smarty |
Personally, I see orphaned files as much less of a problem than a crash.
And in any case, if the version number is clearly in the file name it's easy for a sysadmin to come along and delete any files ... |
Topic: Requirment to clear compiled templates when upgading Smarty |
jarofgreen
Replies: 2
Views: 8492
|
Forum: Smarty Development Posted: Mon Mar 12, 2012 12:39 pm Subject: Requirment to clear compiled templates when upgading Smarty |
Can we remove this?
It would make upgrading easier and remove a persistent support question.
Complied Template filenames are currently
<MD5>.file.<TemplateFileName>.php
could th ... |
Topic: Convert number of seconds to human readable (NOT date!) |
jarofgreen
Replies: 7
Views: 22721
|
Forum: Plugins Posted: Tue Nov 08, 2011 10:00 am Subject: Convert number of seconds to human readable (NOT date!) |
Simply put it in a file called "modifier.seconds_to_words.php" and stick in in your smarty/plugins folder. |
Topic: Convert number of seconds to human readable (NOT date!) |
jarofgreen
Replies: 7
Views: 22721
|
Forum: Plugins Posted: Tue Oct 18, 2011 7:24 am Subject: Re: Convert number of seconds to human readable NOT date |
actually they shouldn't have to remove the folder. Just use the update button for the plugin.
I don't understand what you mean ... are you sure this is on the right thread? |
Topic: Convert number of seconds to human readable (NOT date!) |
jarofgreen
Replies: 7
Views: 22721
|
Forum: Plugins Posted: Mon Jun 06, 2011 3:21 pm Subject: Convert number of seconds to human readable (NOT date!) |
Hello, sorry, I only just saw this.
The line your are referring to has a catch at the start for 0 hours.
if ($hours > 0) $out .= $hours . " hour". ($hours > 1 ? " ... |
Topic: {while} loop with a block that executes if no content |
jarofgreen
Replies: 1
Views: 4114
|
Forum: General Posted: Mon Jun 06, 2011 3:15 pm Subject: {while} loop with a block that executes if no content |
Is there an easy way to do something like this:
{while $x = $y->getNext()}
.. do something with {$x}
{else}
Sorry, there was no data!
{/elsewhi ... |
Topic: While loops throwing Undefined variable Notices |
jarofgreen
Replies: 1
Views: 4172
|
Forum: General Posted: Thu Dec 23, 2010 11:02 am Subject: While loops throwing Undefined variable Notices |
I just went to Smarty 3.0.6 and I agree with the decision not to hide errors any more. Thank you.
However, one of the errors it's uncovered makes no sense to me ...
{while $watcher=$watcher ... |
Topic: Convert number of seconds to human readable (NOT date!) |
jarofgreen
Replies: 7
Views: 22721
|
Forum: Plugins Posted: Tue Oct 26, 2010 10:48 am Subject: Convert number of seconds to human readable (NOT date!) |
This converts an integer into a string.
60 => "1 Minute"
72 => "1 Minute 12 Seconds"
View the latest version at
http://elastik.svn.sourceforge.net/viewvc/elastik/tru ... |
Topic: Fully-Flexible Open Source Issue Tracker, Elastik |
jarofgreen
Replies: 0
Views: 19884
|
Forum: Showcase Posted: Wed Oct 06, 2010 11:05 am Subject: Fully-Flexible Open Source Issue Tracker, Elastik |
We are using Smarty for our BSD-Licensed Issue Tracker. It's completely flexible in that you can use any categories, any fields and any status workflows you want in any project. A quick slide show of ... |
Topic: Docs? |
jarofgreen
Replies: 1
Views: 4295
|
Forum: Smarty 3 Posted: Sun Sep 26, 2010 7:04 pm Subject: Docs? |
Twice now I've asked questions and it seems like Smarty 3 just has all the answers .... Great work!
Do you have the smarty 3 docs somewhere? I'd happily do what I can to help by reading thru them, ... |
Topic: Are Smarty 3 compiled templates portable? |
jarofgreen
Replies: 2
Views: 4444
|
Forum: General Posted: Sun Sep 26, 2010 6:58 pm Subject: Are Smarty 3 compiled templates portable? |
Thanks again for a quick reply.
I should probably just ask where the smarty 3 Docs are In I will go to the smarty 3 forum and do just that. |
Topic: Are Smarty 3 compiled templates portable? |
jarofgreen
Replies: 2
Views: 4444
|
Forum: General Posted: Sun Sep 26, 2010 1:50 pm Subject: Are Smarty 3 compiled templates portable? |
That is, if I compile Smarty 3 templates on one system can I then take them to another system, put them in the compiled templates folder and have that new system use them?
In a bid to squeeze as mu ... |
Topic: A while loop that assigns values until null |
jarofgreen
Replies: 2
Views: 9377
|
Forum: Plugins Posted: Fri Sep 24, 2010 1:30 pm Subject: A while loop that assigns values until null |
Cool, that's fantastic! And I have just realised I can use Cycle to do what I want so I don't need to get a count out of it.
Thanks for your prompt reply |
Topic: A while loop that assigns values until null |
jarofgreen
Replies: 2
Views: 9377
|
Forum: Plugins Posted: Fri Sep 24, 2010 9:43 am Subject: A while loop that assigns values until null |
I'm looking for a plug-in for Smarty 3 that does a while loop like the PHP code:
while($x = $y->getNextResult()) {
...
}
So it loops round until getNextResult() ... |
|