SitePoint Sponsor

User Tag List

Results 1 to 25 of 274

Threaded View

  1. #14
    SitePoint Addict
    Join Date
    Oct 2004
    Location
    Sutton, Surrey
    Posts
    259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Selkirk
    Quote Originally Posted by Tony Marston
    This is the only place where my implementation diverges. Due to the passive nature of HTTP my controller tells a model to do something, and when it has done it the model gives its response back to the controller. The controller then takes this response and converts it into an XML document before giving it to the view (an XSL stylesheet) for processing. Thus my views have no communication with any model.
    Looking at my code I think that defining my view component as nothing but the XSL transformation may be incorrect. I have a small number of generic controllers which are procedural, not OO, which may call other procedural functions as well as instantiating and communicating with objects in the business layer. The final step in every controller (when it needs to create XHTML output) is to call a procedural function buildXML() with a list of objects. This function pulls data out of the objects, constructs the XML document and finally performs the XSL transformation. If you regard this function to be part of the view then it (the view) does indeed pull data out of the object(s) before it pushes it to the XSL stylesheet.
    Last edited by Tony Marston; Nov 17, 2004 at 10:51.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •