Author |
Message |
Topic: Activestate awards |
Tom Sommer
Replies: 5
Views: 38136
|
Forum: Article Discussions Posted: Wed Jun 11, 2003 2:59 pm Subject: Activestate awards |
Yup, I knew where to put my X also |
Topic: this is it, but need smarty method for it :) |
Tom Sommer
Replies: 2
Views: 9328
|
Forum: Feature Requests Posted: Fri May 30, 2003 6:22 pm Subject: this is it, but need smarty method for it :) |
can't you just use $smarty->get_template_vars() ? |
Topic: Embedded vars in config files |
Tom Sommer
Replies: 23
Views: 54929
|
Forum: Feature Requests Posted: Fri May 09, 2003 10:30 pm Subject: Embedded vars in config files |
one-time fits all......
Would it not be possible just to check for "\$[a-z]" when a config var is _displayed_...
Sort of like a simple eval.
I sort of see this as simply treating config vars li ... |
Topic: Seperate SQL from PHP code |
Tom Sommer
Replies: 15
Views: 29060
|
Forum: General Posted: Mon May 05, 2003 12:30 pm Subject: Seperate SQL from PHP code |
I got my own DB class...
I'm don't see _ANY_ need to have a function write your SQL query, it's a rather simple syntax and seems rather newbie-like to me
$db->connect();
$db->query("SE ... |
Topic: Smarty for PHP5 |
Tom Sommer
Replies: 10
Views: 22097
|
Forum: Smarty Development Posted: Thu May 01, 2003 9:13 pm Subject: Smarty for PHP5 |
PHP4 can't parse PHP5
You have to maintain two codebases then
And checking for PHP4 and PHP5 and going forward with all that namespace stuff etc. if it's PHP5, won't really be very good for perf ... |
Topic: Smarty for PHP5 |
Tom Sommer
Replies: 10
Views: 22097
|
Forum: Smarty Development Posted: Thu May 01, 2003 8:46 pm Subject: Smarty for PHP5 |
Once PHP5 is released, you can't assume everyone will upgrade from PHP4...
If you code for PHP5, you'll loose all PHP4 users, which is bad |
Topic: Smarty documents in binded format? |
Tom Sommer
Replies: 5
Views: 16001
|
Forum: General Posted: Mon Apr 28, 2003 12:32 pm Subject: Smarty documents in binded format? |
What? You can make you own book? |
Topic: Getting smarty vars from php code |
Tom Sommer
Replies: 17
Views: 37613
|
Forum: Feature Requests Posted: Mon Apr 28, 2003 6:50 am Subject: Getting smarty vars from php code |
http://dk.php.net/anoncvs.php |
Topic: Getting smarty vars from php code |
Tom Sommer
Replies: 17
Views: 37613
|
Forum: Feature Requests Posted: Sun Apr 27, 2003 11:14 pm Subject: Getting smarty vars from php code |
err, tom... I guess you didn't understand the article
THIS is not possible:
class foo
{
}
$foo = new foo;
$foo->bar = 'something';*Feels dumb*
BTW messju.. I assume you mea ... |
Topic: Getting smarty vars from php code |
Tom Sommer
Replies: 17
Views: 37613
|
Forum: Feature Requests Posted: Sun Apr 27, 2003 9:49 pm Subject: Getting smarty vars from php code |
Read this: http://www.php-con.com/2003/east/interviews/hughes.php
Then we'll talk |
Topic: Getting smarty vars from php code |
Tom Sommer
Replies: 17
Views: 37613
|
Forum: Feature Requests Posted: Sun Apr 27, 2003 8:43 pm Subject: Getting smarty vars from php code |
Don't get PHP5 snapshot... Word has it it's leaking so much memory that it's no where near production quality yet
I'm not really looking forward to PHP5 that much, I don't see what all this namespa ... |
Topic: Smarty documents in binded format? |
Tom Sommer
Replies: 5
Views: 16001
|
Forum: General Posted: Sun Apr 27, 2003 8:41 pm Subject: Re: Smarty documents in binded format? |
Are the documents for smarty avaliable in binded book format?no... try http://smarty.php.net/download-docs.php |
Topic: Function optimize? |
Tom Sommer
Replies: 5
Views: 14718
|
Forum: General Posted: Sat Apr 26, 2003 10:43 pm Subject: Function optimize? |
OMG, that lowered the loadtime so much... Thank you, never thought of that |
Topic: Function optimize? |
Tom Sommer
Replies: 5
Views: 14718
|
Forum: General Posted: Sat Apr 26, 2003 9:53 pm Subject: Function optimize? |
I'm worried about performance,
I have a function which generates a headline
Called like so{headline name='News'}
Function looks like this
function smarty_function_headline($ ... |
Topic: Performance decrease |
Tom Sommer
Replies: 24
Views: 45249
|
Forum: Smarty Development Posted: Sat Apr 26, 2003 9:49 pm Subject: Performance decrease |
I don't really use config files for much, I use sections, variables (assign) and one or two custom-functions and html_options
I don't use blocks, since I can't understand what the diff between sect ... |
|