|
Mailing Lists
|
Home /
Groups /
Mach-II
Dynamic content within MachII
Author: Merritt Chapman
Short Link: http://www.houseoffusion.com/groups/mach-ii/thread.cfm/threadid:76#205
I'm currently working on designing a site using CFMX 6.1 that will display
content dynamically depending on session variable values. I am implementing
the MachII framework with this site, but am having trouble deciding how the
handle the dynamic pieces of my design. For example, I have a CFML page
consisting of buttons that are displayed based on <cfif> statements that
use
session variables for decision-making. This 'buttons' page is included into
a main template using a <cfinclude> tag. To stay true to the MVC pattern,
I
would need to remove the <cfif> statements from my 'buttons' page view to
keep 'presentation' and 'logic' separated.
I've read in best practice articles that CFCs should never be used to output
content. How can this be accomplished if CFCs, the building block for the
Model in the MachII framework, are not meant for displaying output? Would a
custom tag be the best approach here?
Any insight on this would be much appreciated. Thanks!
-------------------------------------------------------
This message (including any attachments) may contain
confidential and privileged information. If you are
not the intended recipient, please notify the sender
and delete all copies of the original message without
using or disclosing it. Thank you.
-------------------------------------------------------
|
May 20, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||