Do you have a question? Post it now! No Registration Necessary. Now with pictures!
February 18, 2007, 5:53 am
rate this thread
and am wondering if there is an alternative way I could template my
logic so I don't have to re-dcode the logic of the various CRUD
methods and an action forms.
Currently I have two files, the custom code and the logic template:
(custom code file) The custom bits of code that fall within the common
logic are in various strings containing code segments (i.e. POST
filter, validation, create record(s), update data, GET filter, delete
confirm, flush data read in db record, etc.)
(included template) next I include the template file which has the
common logic code for that type of form and uses eval()s on the above
strings in appropriate places.
(custom code file) and finish with the HTML input form.
It has made debugging and development easier, but I wonder if there is
a better way that I haven't discovered in PHP, what do you guys do?