Date: 04/30/00
- Next message: Andreas Boehm: "[phplib] auto_prepend_file"
- Previous message: Toby Cabot: "Re: [phplib] PHP code in PHPLib templates"
- In reply to: Toby Cabot: "Re: [phplib] PHP code in PHPLib templates"
- Next in thread: Andreas Boehm: "[phplib] auto_prepend_file"
- Reply: Andreas Boehm: "[phplib] auto_prepend_file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
* Toby Cabot wrote:
> The concept is the same, but the implementation is *very* different.
I'm missing a feature in current PHPLIB Template class. In a big
project I use that template class, but it is necessary that I don't
write <a href="bla.php3"> inside the HTML code of the template. Instead,
I have to write <a href="<?php $sess->purl("bla.php3"); ?>"> from
my session class.
To get a general function out of this, something like
{WRITEURL bla.php3} would be nice, e.g. a keyword with
optional arguments. So I could assign them (not really
like that):
$tmpl->set_var(array("WRITEURL"=>my_function($parameter_from_that_keyword));
where
function my_function($parameter_from_that_keyword) {
global $sess;
return $sess->url($parameter_from_that_keyword);
}
Perhaps an idea for PHPLIB 8?
-- ** Ostermotive ** Comics ** Hochwertige Akte ** Liebesgrüße ** ** Städtebilder und mehr bei Landschaftsmotive **=======> <http://www.web-cards.de/> <=======
--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Andreas Boehm: "[phplib] auto_prepend_file"
- Previous message: Toby Cabot: "Re: [phplib] PHP code in PHPLib templates"
- In reply to: Toby Cabot: "Re: [phplib] PHP code in PHPLib templates"
- Next in thread: Andreas Boehm: "[phplib] auto_prepend_file"
- Reply: Andreas Boehm: "[phplib] auto_prepend_file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

