Posted by Myles on Mon Nov 16 12:41:09 1998
In Reply to: Re: PHP posted by william on November 13, 1998 at 08:23:12:
Distribution: | paneris@i-way.co.uk |
---|
>Yes, it looked to me as if it's aimed at a slightly
>different job from what we want. Unless we can find
>something out there which (a) gives a veneer of
>common sense over SQL (b) separates the code from
>the HTML (c) will turn into business objects where
>necessary, then I think there is a benefit in
>rolling our own.Agree, agree, agree. I feel that the separation we have
in Iglu is the right way forward: code can live in the
HTML template, the particular script generating the page
or a .pm handling a module of functionality. I think we
could do with some guidelines about where code should live
in these 3 things. For instance:In modules
----------
All code should live in modules except:In HTML (templates)
-------
Diplay orientated code (such as display this field as a
price (2 decimal places)).In the script
-------------
Set up (template) variables, usually by using Database.pm
and any validation/Database updates.These are obviously guidelines not rules. Any thoughts?