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

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to