Re: [GENERAL] Wich the best way to control the logic of a web application?

2009-08-21 Thread Jasen Betts
On 2009-08-19, Christophe Pettus x...@thebuild.com wrote: In other examples, page-to-page flow is probably not a great candidate for encoding in the database; I would think that it makes far more sense for the database to store the state of the various business objects, and let the PHP

[GENERAL] Wich the best way to control the logic of a web application?

2009-08-19 Thread Andre Lopes
Hi, Now I'am with some doubts on how to control the logic of a web application? So... the web application uses PHP, object oriented and PostgresSQL Database. I have developed some procedures and functions in the database but I don't know if it is correct to mix logic in the database and PHP.

Re: [GENERAL] Wich the best way to control the logic of a web application?

2009-08-19 Thread Sam Mason
On Wed, Aug 19, 2009 at 05:46:17PM +0100, Andre Lopes wrote: What do you think aboout this? Should I mix logic in Database and PHP or should I control the logic only in the PHP? As always, it depends! I tend to put things where ever it's most convenient, however data integrity and other

Re: [GENERAL] Wich the best way to control the logic of a web application?

2009-08-19 Thread Christophe Pettus
On Aug 19, 2009, at 9:46 AM, Andre Lopes wrote: What do you think aboout this? Should I mix logic in Database and PHP or should I control the logic only in the PHP? There are no real hard and fast rules, of course, just rules of thumb. Here are some of mine. First, remember that there