Author |
Message |
Topic: Smarty and date calculations |
appel
Replies: 2
Views: 7334
|
Forum: General Posted: Fri Dec 05, 2008 6:29 pm Subject: Smarty and date calculations |
Hi
I need to display on my website something like a countdown, in days. So, I want to display how many days are pending from now until February 1st (2009).
I wanted to do these calculations in S ... |
Topic: Java4K.com - A game programming competition |
appel
Replies: 0
Views: 9397
|
Forum: Showcase Posted: Wed Dec 05, 2007 5:38 pm Subject: Java4K.com - A game programming competition |
http://www.java4k.com is using Smarty!
Java 4K is a game programming competition, where the goal is to create a game in Java that is MAX 4KB or less.
Lots of fun games there to play. |
Topic: Displaying sizeof array |
appel
Replies: 1
Views: 5006
|
Forum: General Posted: Mon Dec 03, 2007 7:30 pm Subject: Displaying sizeof array |
Hi,
I want to display the size of my array, something like:
The array contains {sizeof($array)} records.
Any ideas? |
Topic: Using total and max in section |
appel
Replies: 2
Views: 5720
|
Forum: General Posted: Wed Jan 19, 2005 2:49 pm Subject: Using total and max in section |
Hello.
I'm trying to create a list by looping an associative array using section.
<ul>
{section name=News loop=$AllNews max=10}
<li>{$AllNews[News].NewsTit ... |
Topic: People dissing Smarty |
appel
Replies: 3
Views: 7018
|
Forum: General Posted: Sun Jun 20, 2004 2:05 am Subject: People dissing Smarty |
I've been reading a lot of articles on PHP related stuff, and when it comes to a template system then some say Smarty is a bad choice.
Sometimes I wonder if those people are correct, but I do like ... |
Topic: ADVANCED: Recursion with Smarty |
appel
Replies: 155
Views: 825062
|
Forum: Tips and Tricks Posted: Tue Apr 20, 2004 10:57 am Subject: ADVANCED: Recursion with Smarty |
I'm using the defun plugin and I was wondering about one thing.
I have a array of pages, and some pages contain array of pages, childrens.
Now, I have a select box, dropdown, where I list all my ... |
Topic: $smarty.get in PHP5 |
appel
Replies: 3
Views: 10039
|
Forum: Bugs Posted: Wed Apr 07, 2004 12:34 pm Subject: $smarty.get in PHP5 |
In PHP 5 RC1 I cannot use the {$smarty.get.varname} in my smarty templates. |
Topic: Smarty and PHP5 |
appel
Replies: 2
Views: 4961
|
Forum: General Posted: Mon Jan 26, 2004 4:55 pm Subject: Re: Smarty and PHP5 |
This may seem like a stupid question, but I haven't tested PHP5 and I'm wondering how I can benefit from smarty and php5 combination. How are people using these two technologies together?
How does ... |
Topic: Smarty and PHP5 |
appel
Replies: 2
Views: 4961
|
Forum: General Posted: Mon Jan 26, 2004 11:56 am Subject: Smarty and PHP5 |
This may seem like a stupid question, but I haven't tested PHP5 and I'm wondering how I can benefit from smarty and php5 combination. How are people using these two technologies together?
How does ... |
Topic: {if isset($some_smarty_var)} ... {/if} ? |
appel
Replies: 3
Views: 7027
|
Forum: General Posted: Wed Aug 13, 2003 2:09 pm Subject: {if isset($some_smarty_var)} ... {/if} ? |
OMG. I'm a total noob. |
Topic: {if isset($some_smarty_var)} ... {/if} ? |
appel
Replies: 3
Views: 7027
|
Forum: General Posted: Wed Aug 13, 2003 1:57 pm Subject: {if isset($some_smarty_var)} ... {/if} ? |
Is there a way to do this?
{if isset($some_smarty_var)} ... {/if} |
Topic: Thats why Smarty sucks - Swedish discussion |
appel
Replies: 3
Views: 10161
|
Forum: General Posted: Wed Jul 02, 2003 7:14 pm Subject: Thats why Smarty sucks - Swedish discussion |
Oh yes, and we all read swedish lol |
Topic: Accessing {$object->array["variable"]} |
appel
Replies: 7
Views: 20040
|
Forum: General Posted: Wed Jul 02, 2003 6:41 pm Subject: Accessing {$object->array["variable"]} |
Interesting. I'm not going to bother to try, but does this work?
{$PageObject->arrContent
No, that doesn't work either. I tried several ways to do this but I found none that works.
Your ... |
Topic: Accessing {$object->array["variable"]} |
appel
Replies: 7
Views: 20040
|
Forum: General Posted: Wed Jul 02, 2003 6:12 pm Subject: Accessing {$object->array["variable"]} |
I assigned the object in PHP to this template, but when I try to access an variable in an array in the object I get an error.
This is the output: {$PageObject->arrContent.content_text ... |
Topic: Displaying an array recursively in smarty |
appel
Replies: 3
Views: 6470
|
Forum: General Posted: Wed Jul 02, 2003 5:58 pm Subject: Displaying an array recursively in smarty |
appel, there is a nice thread on recursion / advanced looping in the Tips & Tricks forum. Your solution is perfectly valid but you will find a much faster and possibly neater solution there
Gree ... |
|