Summer S. Wilson wrote:
Okay...made some changes to match this idea. Now the gateway function that does the initial query takes that query and uses it to make a new query that adds in the thumbnail and PDF details I need for that page. Then my view is purely output. Is that what you meant? If a page needs data from multiple sources, the gateway should do that, either returning a combined query or something and array or structure, as is appropriate?
Yep, exactly. Another tip is to keep your listeners as "dumb" as possible--they should just take data from the event object, pass it off to your services, which return data and that gets put in the event object for display in a view.
-- Matthew Woodward [email protected] http://www.mattwoodward.com/blogPlease do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html
smime.p7s
Description: S/MIME Cryptographic Signature
