Author |
Message |
Topic: Loop in Loop wie ? |
electr0n
Replies: 4
Views: 13709
|
Forum: Language: German Posted: Thu Jul 29, 2004 12:41 pm Subject: Loop in Loop wie ? |
In PHP kannst du sowas folgendermaßen anlegen:
<?php
$smarty_daten = array();
$query = mysql_query(...);
while ($daten = mysql_fetch_assoc($query)) {
$smarty_daten
Beispielstemplate:
& ... |
Topic: Gzipping of cached templates. |
electr0n
Replies: 9
Views: 24838
|
Forum: Tips and Tricks Posted: Sat Jun 19, 2004 5:51 pm Subject: Gzipping of cached templates. |
Thanks for the tipps markon! |
Topic: Gzipping of cached templates. |
electr0n
Replies: 9
Views: 24838
|
Forum: Tips and Tricks Posted: Sat Jun 19, 2004 12:02 pm Subject: Gzipping of cached templates. |
<?php
/**
* a gzip-cache handler for smarty
*
* @access private
* @return boolean
*
* @param string $method
* @param object $smarty
* @param string $cache_content
* @param string ... |
Topic: Gzipping of cached templates. |
electr0n
Replies: 9
Views: 24838
|
Forum: Tips and Tricks Posted: Fri Jun 18, 2004 1:16 pm Subject: Gzipping of cached templates. |
maybe it's worth benchmarking and comparing.
but why did you (electr0`n) hack up the core for that instead of using $smarty->cache_handler_func?
Hacking the core was in this case less work, tha ... |
Topic: Smarty XML Tags |
electr0n
Replies: 1
Views: 15604
|
Forum: Tips and Tricks Posted: Fri Jun 11, 2004 3:26 pm Subject: Smarty XML Tags |
It was a task of my teacher and I wanted to post it here. It's not realy XML compliant, but others ways are not dynamic.
You have to set the $left_delimiter to "<smarty:" and the $right_delimiter ... |
Topic: SmartyValidate: a simple yet powerful form validation plugin |
electr0n
Replies: 268
Views: 1426291
|
Forum: Add-ons Posted: Fri Jun 11, 2004 1:40 pm Subject: SmartyValidate: a simple yet powerful form validation plugin |
I've got a question, is the removing of the non validated variables built in now? |
Topic: PHP 5 |
electr0n
Replies: 3
Views: 11372
|
Forum: Smarty Development Posted: Wed Jun 09, 2004 3:10 pm Subject: PHP 5 |
Yes, but it makes use from the "old OOP". |
Topic: SmartyValidate: a simple yet powerful form validation plugin |
electr0n
Replies: 268
Views: 1426291
|
Forum: Add-ons Posted: Tue Jun 08, 2004 4:29 pm Subject: SmartyValidate: a simple yet powerful form validation plugin |
IMO, database interfaces shouldn't trust anything that is supposedly "pre-validated" but rather should implement private validation. ie: Your upstreams should be atomic/stand-alone, AFAIC, in that the ... |
Topic: SmartyValidate: a simple yet powerful form validation plugin |
electr0n
Replies: 268
Views: 1426291
|
Forum: Add-ons Posted: Mon Jun 07, 2004 6:28 pm Subject: SmartyValidate: a simple yet powerful form validation plugin |
It would be great in the connect() method. Like boots said, just the variables, which aren't checked, for example:
<form method="post" action="index4.php">
{valida ... |
Topic: SmartyValidate: a simple yet powerful form validation plugin |
electr0n
Replies: 268
Views: 1426291
|
Forum: Add-ons Posted: Mon Jun 07, 2004 5:18 pm Subject: SmartyValidate: a simple yet powerful form validation plugin |
Yeah. Sorry for my unclear formulation. |
Topic: Should I use Smarty or not? |
electr0n
Replies: 2
Views: 5688
|
Forum: General Posted: Mon Jun 07, 2004 3:26 pm Subject: Should I use Smarty or not? |
Currently I've got no homepage, but I'm coding on it.
I'm just a programmer and my designer is another man.
Smarty rocks and even "only programmers" can use it! |
Topic: SmartyValidate: a simple yet powerful form validation plugin |
electr0n
Replies: 268
Views: 1426291
|
Forum: Add-ons Posted: Mon Jun 07, 2004 3:12 pm Subject: SmartyValidate: a simple yet powerful form validation plugin |
Could someone do a hack or something else, which let's just the checked POST Variables in $_POST? If you say me, where the variables are checked and tranformed, I'll do that. |
Topic: best way to build a multi-language site with smarty |
electr0n
Replies: 210
Views: 1207360
|
Forum: Tips and Tricks Posted: Sun Jun 06, 2004 3:33 pm Subject: best way to build a multi-language site with smarty |
That's a config variable . http://smarty.php.net/manual/en/config.files.php |
Topic: Variables stored inside cached templates? |
electr0n
Replies: 4
Views: 8588
|
Forum: General Posted: Sun Jun 06, 2004 3:29 pm Subject: Variables stored inside cached templates? |
$smarty.now is already a timestamp which contains the seconds from the begin of the UNIX Time till now .
<!-- Template is {dynamic}{$smarty.now}{/dynamic} seconds ... |
Topic: Switch? |
electr0n
Replies: 5
Views: 15036
|
Forum: Feature Requests Posted: Fri Jun 04, 2004 7:32 pm Subject: Switch? |
hehe, thx for that |
|