Reply to logic template methods?

Your name:

Reply:


Posted by larry on 02/18/07 05:53

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?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация