[phplib] Am I on the right track??????? From: Cory Factor (clfactor <email protected>)
Date: 10/06/00

Here is what I am trying to accomplish:
I am using phplib and mysql for this application. I want to be able to use
layout people to simply layout how the pages will look. They will not touch
code at all. Then I have entry level programmers that will simply have to
add one add_element line to the code and all of the database transactions
will be taken care of.

Here is how I am doing this:
I am using oohforms class to load the elements. I then create a template
class. I am overriding the function show_element
so it returns a value instead of printing it out. Then I use that value in
the template class set_var function.
Then I use the form->elements array and loop through that for creating the
query statements and the template->set_var functions.

When a field needs to be added the programmer just adds one add_element
statement where the name is the same as the field name and the layout person
just adds a {fieldname} in the html layout file.
Am I taking the long way to do this? Is there some functionality in tpl_form
that does this?

Thanks,
Cory Factor
clfactor <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>