Author |
Message |
Topic: Display sizeof() of an assigned array before a section? |
TimJim
Replies: 7
Views: 34994
|
Forum: General Posted: Mon Sep 22, 2003 4:47 pm Subject: Display sizeof() of an assigned array before a section? |
Yes, thanx. This works. But where did you find this? I can't find it in the documentation... |
Topic: Display sizeof() of an assigned array before a section? |
TimJim
Replies: 7
Views: 34994
|
Forum: General Posted: Mon Sep 22, 2003 4:11 pm Subject: Display sizeof() of an assigned array before a section? |
Is there a possibility to display the sizeof() of an assigned array? I used an array for a section, but i couldn't find a way (without assigning only the size to another smarty variable) to display th ... |
Topic: Caching: general question |
TimJim
Replies: 1
Views: 6439
|
Forum: General Posted: Mon May 26, 2003 4:31 pm Subject: Caching: general question |
For reasons of performance i would like to use caching for my sites. But it seems, that the _whole_ site has to be static if you like to use caching. If just one page (of manys) has dynamic content it ... |
Topic: two diferent delimiter |
TimJim
Replies: 24
Views: 54535
|
Forum: Feature Requests Posted: Mon May 05, 2003 9:42 pm Subject: two diferent delimiter |
Oh... it's that easy? Yeah thanks, think this will be no problem.
But in general, you don't like the idea to be implemented? When I changed from a very, very simple template system to HTML_Template ... |
Topic: two diferent delimiter |
TimJim
Replies: 24
Views: 54535
|
Forum: Feature Requests Posted: Mon May 05, 2003 9:05 pm Subject: two diferent delimiter |
before i used HTML_Template_IT of the PEAR project. There the blocks (here: sections) use the delimiter <!-- BEGIN asdf ---> and <!-- END asdf --> and the placeholder of the variables look ... |
Topic: html_select_date: all field_separator are shown |
TimJim
Replies: 0
Views: 7741
|
Forum: Bugs Posted: Mon May 05, 2003 8:49 pm Subject: html_select_date: all field_separator are shown |
It's just a little bug... but if i set for example display_days = false both field separators are shown. You won't notice when field_separatos are default (\n), but when you set them to "-" the option ... |
Topic: Assign template to variable? Handle a set of templ. as one? |
TimJim
Replies: 18
Views: 55440
|
Forum: General Posted: Fri Apr 25, 2003 6:52 pm Subject: Assign template to variable? Handle a set of templ. as one? |
I refer me to the include template.
For example:
main.tpl:
bla<br>
{include file=$template_name}
additional.tpl:
{$name}
This one works:
index.php:
$smarty = new Smarty;
$smart ... |
Topic: sections: assign integer to loop variable? |
TimJim
Replies: 2
Views: 12174
|
Forum: General Posted: Fri Apr 25, 2003 6:28 pm Subject: sections: assign integer to loop variable? |
Thanx. |
Topic: sections: assign integer to loop variable? |
TimJim
Replies: 2
Views: 12174
|
Forum: General Posted: Fri Apr 25, 2003 5:59 pm Subject: sections: assign integer to loop variable? |
From the manual: "The loop variable (usually an array of values) determines the number of times the section will loop"
I assigned to the loop variable an integer and the section looped as many time ... |
Topic: Assign template to variable? Handle a set of templ. as one? |
TimJim
Replies: 18
Views: 55440
|
Forum: General Posted: Fri Apr 25, 2003 5:42 pm Subject: Assign template to variable? Handle a set of templ. as one? |
Does it matter in which order I assign the variables? For example if I assign a variable of the included template before I assign the variable which file I will include? |
Topic: sections: print number of loop? |
TimJim
Replies: 3
Views: 13341
|
Forum: General Posted: Fri Apr 25, 2003 4:27 pm Subject: sections: print number of loop? |
Thx, I looked up in the manual, but didn't came to this point. Next time I will study the manual more carefully.
Btw: I already have started loving Smarty. This template engine is awesome and a ... |
Topic: sections: print number of loop? |
TimJim
Replies: 3
Views: 13341
|
Forum: General Posted: Fri Apr 25, 2003 1:41 pm Subject: sections: print number of loop? |
Hi is it possibly to print the number of the loop within the section without having an array like $arr = array("1", "2", "3", "4")
Like this but with internal variables/functions only:
$arr = ar ... |
Topic: Assign template to variable? Handle a set of templ. as one? |
TimJim
Replies: 18
Views: 55440
|
Forum: General Posted: Tue Apr 22, 2003 4:53 pm Subject: Assign template to variable? Handle a set of templ. as one? |
And with the included template I can do all the stuff like in the main template? Functions, sections, variables, ...?
btw: I just saw, that you come from Germany, too. Greetz from Hamburg... |
Topic: Assign template to variable? Handle a set of templ. as one? |
TimJim
Replies: 18
Views: 55440
|
Forum: General Posted: Tue Apr 22, 2003 1:36 pm Subject: Assign template to variable? Handle a set of templ. as one? |
My site uses a set of diferent templates, that I'd put together with my old template system. For example I got a main.tpl in which are two variables $content and $buttons. To this variables I assigned ... |
|