By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,303 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,303 IT Pros & Developers. It's quick & easy.

logic template methods?

P: n/a
I am in the process of recoding a rather complex DB system into PHP
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?

Feb 18 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.