On Mon, Sep 19, 2005 at 03:08:30PM +1000, russell wrote:
> been hardcoding the next runmode that a submit button should invoke in
> the templates themselves, but this seems as though it will prohibit
> runmode/template
> reuse. How *should* this be done?
I just hardcode. If a section of a template is likely to be reused,
(such as the part listing the field input tages in a BREAD/CRUD
applicaiton) I put that in a separate file that is included/processed by
the outer template.
For example, in my BREAD applications, I have an Add template, an Edit
template, and a Partial Add template (to reuse info from another entry).
those templates all contain the form tags and rm definitions, plus the
primary key field if relevant. Then they all include the same base
template of fields.
--
SwiftOne / Brett Sanger
suppressed
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.