Search found 5 matches

by dall
Sun Apr 08, 2007 5:39 pm
Forum: PHP - Code
Topic: get functions return
Replies: 3
Views: 490

ok.

in database table I have functions names like 'xx_xxx2', it is block
in template file I have [REQ_x], I need to replace [REQ_x] with functions, who are in 'x' region.

Only problem that I have, I don't know how to hold function return, to use it letter(cache, etc.).
by dall
Sun Apr 08, 2007 5:29 pm
Forum: PHP - Code
Topic: get functions return
Replies: 3
Views: 490

get functions return

I'm writing template system, template system gets function name, so I have to get function result in array to replace it. how to do something like this? function function_result($function) { $f = call_user_func($function); return $f; } I need to hold function result to use it letter. Thanks.
by dall
Mon Feb 05, 2007 4:12 am
Forum: Coding Critique
Topic: my template parser
Replies: 7
Views: 6613

how to remove undefined vars in template?
by dall
Mon Feb 05, 2007 2:28 am
Forum: Coding Critique
Topic: my template parser
Replies: 7
Views: 6613

yes thanks, updated code.
by dall
Sun Feb 04, 2007 6:34 pm
Forum: Coding Critique
Topic: my template parser
Replies: 7
Views: 6613

my template parser

Here my template class, please add your comments, critique, thanks. <?php /** * Template class * * @package cms * @version 0.0.1 * @author dall * @date 2006-02-05 * */ class Template { var $filename; var $tags; var $file_path; var $output; var $data; var $expire; var $is_cached; var $cache_filename;...