[UPHPU] Controllers and Views
Nathan Lane
nathamberlane at gmail.com
Tue Apr 15 14:32:33 MDT 2008
Sorry, I guess this went to the wrong group - my bad, but thanks for
replying.
On Tue, Apr 15, 2008 at 2:28 PM, thebigdog <bigdog at venticon.com> wrote:
> Nathan Lane wrote:
>
> > Would you prefer to write puts statements in controllers or at the view
> > level? How much HTML should be written using puts, i.e. puts "<div
> > class='whatever'>...", and how much should be created by an XML
> > generator
> > like Rexml?
> >
>
> views are where that type of data should be placed at. controllers are
> used to hand the process of control between objects and work flow. your
> model is where you would store the object data or page data.
>
> If you are talking strictly in the xml sense then the model would be
> compariable to xml and the view would be your xsl(t) [+ css]. Your
> controller helps with the work flow to bring the model and view together.
>
>
> --
> thebigdog
>
--
Nathan Lane
Home, http://www.nathandelane.com
Blog, http://nathandelane.blogspot.com
More information about the UPHPU
mailing list