[UPHPU] Controllers and Views

thebigdog bigdog at venticon.com
Tue Apr 15 14:28:53 MDT 2008


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


More information about the UPHPU mailing list