Date: 07/14/00
- Next message: Gerald Howse: "[phplib] local.inc problem and non- existant classes errors"
- Previous message: Brownridge, Tom: "RE: [phplib] Netscape and MSIE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
1) Theorize for a moment that in addition to the show_element() method of
the form class, there was a matching element() method that returned a
string.
2) Then, let there be objects $t and $f, a template and a form object,
respectively.
3) Assuming a template variable and a form element had identical names
(stored in $name), It would follow that I could write the code:
$t->set_var($name, $f->element( $name ) );
4) By extending template, I could further simplify things to produce code
like:
$t->set_form_var($name, $f);
5) This appears to suit my lazy lifestyle by creating less code for me
6) We keep out PHP out of our templates, and our HTML out of our PHP
scripts.
Q) Is this a "BAD THING"? I'm afriad I've overlooked something, or someone
would have done this already.
Virtually,
Tom Brownridge
Assistant Professor of Computer Science
Indiana Institute of Technology
mailto:brownridge <email protected>
voice phone: (219) 422-5561 x2257
- Next message: Gerald Howse: "[phplib] local.inc problem and non- existant classes errors"
- Previous message: Brownridge, Tom: "RE: [phplib] Netscape and MSIE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

