Author |
Message |
Topic: Fetch vs. Display() |
iriePub
Replies: 7
Views: 20013
|
Forum: General Posted: Sun Aug 20, 2006 11:01 am Subject: Fetch vs. Display() |
No, I mea the first thing., using $smarty->fetch() in your php code instead of {include} in the template tag, to contrcut a deeper nesting of templates! |
Topic: Register Prefilter doesn't work |
iriePub
Replies: 2
Views: 8148
|
Forum: General Posted: Fri Aug 18, 2006 9:13 am Subject: Register Prefilter doesn't work |
Oh, I had to turn on force_compile, that did the trick. But one thing:
I find now everywhere this:
<!------| Start of {$smarty.template} |------>
Does this var not exist? ... |
Topic: Register Prefilter doesn't work |
iriePub
Replies: 2
Views: 8148
|
Forum: General Posted: Fri Aug 18, 2006 8:41 am Subject: Register Prefilter doesn't work |
Something else: I tried to use the example from the manual:
http://smarty.php.net/manual/en/advanced.features.prefilters.php
but the function remove_dw_comments isn't loaded at all ... |
Topic: Register Prefilter doesn't work |
iriePub
Replies: 2
Views: 8148
|
Forum: General Posted: Fri Aug 18, 2006 8:39 am Subject: Register Prefilter doesn't work |
Hi,
I have an extended Smarty Class to use register Plugins and Filters directly in the Konstruktor!
So I have the following:
/**
* Dynamischer Block
*
* alles zwischen {dynamic} und {/dy ... |
Topic: Fetch vs. Display() |
iriePub
Replies: 7
Views: 20013
|
Forum: General Posted: Thu Aug 17, 2006 12:49 pm Subject: Fetch vs. Display() |
Hi,
What is better to use concerning the performance?
I like {include} much more to keep the templates simple and readable, then to fetch in php and assign to smarty, because when using only one t ... |
Topic: Performance of Assigned Var's |
iriePub
Replies: 4
Views: 8660
|
Forum: General Posted: Wed Aug 16, 2006 3:49 pm Subject: Performance of Assigned Var's |
which settings can improve the performance of smarty EXCEPT caching?
I disabled force_compile, check_compile, what else can I do? thanks!! |
Topic: How to do a for-Iternation in Smarty? |
iriePub
Replies: 5
Views: 9742
|
Forum: General Posted: Tue Aug 15, 2006 8:40 pm Subject: How to do a for-Iternation in Smarty? |
Sorry, I didn't close enough to see the thing "step" |
Topic: How to do a for-Iternation in Smarty? |
iriePub
Replies: 5
Views: 9742
|
Forum: General Posted: Tue Aug 15, 2006 4:32 pm Subject: How to do a for-Iternation in Smarty? |
hm, I don't understand it.
How can I do it like above posted, that I have a start value, and I give the direction of the development (increase / decrease) and the final value ?! |
Topic: Performance of Assigned Var's |
iriePub
Replies: 4
Views: 8660
|
Forum: General Posted: Tue Aug 15, 2006 2:09 pm Subject: Performance of Assigned Var's |
No it doesn't get slower with more assigned vars. Variables are compiled once from {$foo} to something like <?=$this->_tpl_vars, and then executed as plain php from that point forward.
great an ... |
Topic: Performance of Assigned Var's |
iriePub
Replies: 4
Views: 8660
|
Forum: General Posted: Tue Aug 15, 2006 12:47 pm Subject: Performance of Assigned Var's |
Hi,
is smarty getting slower when I assign much variables, or doesn't it matter?
I don't know, how smarty really works.
If it works like this (pseudocode):
foreach($assigned_vars $varname= ... |
Topic: How to do a for-Iternation in Smarty? |
iriePub
Replies: 5
Views: 9742
|
Forum: General Posted: Tue Aug 15, 2006 12:44 pm Subject: How to do a for-Iternation in Smarty? |
I'll try it, thanks!! |
Topic: How to do a for-Iternation in Smarty? |
iriePub
Replies: 5
Views: 9742
|
Forum: General Posted: Tue Aug 15, 2006 11:50 am Subject: How to do a for-Iternation in Smarty? |
Hi,
if I have something like that in PHP:
$max = 10;
for($i = 20; $i > $max; $i--) {
echo 'this is image ' . $i . '<br />';
}
Now I want the template to exec ... |
Topic: Either a Bug or a not wanted Feature!? |
iriePub
Replies: 3
Views: 6873
|
Forum: General Posted: Tue Aug 15, 2006 11:38 am Subject: Either a Bug or a not wanted Feature!? |
Ok, then I misunderstood something, but somewhere I read something like
"any carriage returns, newlines, tabs and spaces are replaced by one space"
So do I have to create my own block-plugin? S ... |
Topic: Either a Bug or a not wanted Feature!? |
iriePub
Replies: 3
Views: 6873
|
Forum: General Posted: Tue Aug 15, 2006 9:23 am Subject: Either a Bug or a not wanted Feature!? |
Hi,
I'm using {strip} to keep my templates readable.
here an example code:
<img
{{*** some comment ***}}
{{if $ppFixWidth !== false}}
widt ... |
Topic: [urgent!!] Problem with Array appending a String |
iriePub
Replies: 1
Views: 4728
|
Forum: General Posted: Sat Aug 05, 2006 7:45 pm Subject: [urgent!!] Problem with Array appending a String |
Hi,
I have a Array with Templatefiles without the extension:
$ary = array('foo'=>'file1', 'bla'=>'file2', 'ttt'=>'file3');
$smarty->assign('sections', $ary);
... |
|