Re: [Nolug] PHP help

From: Jess Planck <jesse.planck_at_gmail.com>
Date: Fri, 18 Apr 2008 14:14:14 -0500
Message-Id: <FBFFAE5E-5B5B-47E7-9068-84376A4AF6B4@gmail.com>

Excellent cut and dry explanation! I wish there was a better short
sentence for it than "don't mix code and data."

http://en.wikipedia.org/wiki/Model-view-controller

Nice diagram and some good references for the PHP help topic.

jess

On Apr 18, 2008, at 12:49 PM, Christopher M. Jones wrote:

> It is bad practice to mix the data access, domain, and presentation
> layers of an application. MVC. Superficially, this means we don't want
> to have SQL queries in a template file, and we don't want HTML mixed
> in
> with code to calculate e.g., category rankings. What you want is
> separate layers to 1. Get the data and pass it into the domain, 2.
> Transform the data and pass it to the presentation, and 3. Present the
> data. (The data itself is inert-- it's just what the layers are
> shuttling around).

___________________
Nolug mailing list
nolug@nolug.org
Received on 04/18/08

This archive was generated by hypermail 2.2.0 : 12/19/08 EST