Best practice MVC for forms to cfc

Conceptually I would like to keep my logic for a very big
site as MVC as possible. As a cf newbie though I am not sure
whether the strategy suggested by most of the blog/tutorials of
sending (say)
index.cfm's Form.UserName to UsernameCheck.cfm which then
<cfinvoke> Username.cfc
or if I can/should send Form.UserName directly to
Username.cfc
Going direct is more straightforward obviously but then is
the only place to put <cfif> (aka Controller) logic in the
index.cfm page (which defeats my intentions anyway)????
I may be way missing something here, but fwiw I'm getting
kind of spaghetti with multiple <cfelseif> 's for every
index.cfm module so am presently leaning toward redirecting (say)
failed signins to RetrySignIn.cfm rather than back to (essentially)
a <cfelseif> of index.cfm.
Thanks in advance for feedback on your experiences, I realize
this could be done/argued either way but . . .

quote:
Originally posted by:
ProjectedSurplus
by MVC I mean separating code as much as possible into
Model (ie database) -- Controller (Business Logic) --- View
(Presentation Tier)
or very very roughly:
SQL in stored procs -- <cfif> statements in cfc's
(and/or non-display cfm's) --- HTML (using CSS)
In theory thus the code should be more compartmentalized and
hence manageable/reusable.
I guess what I am getting at (as I work through this issue)
is what are your opinions regarding (say)
a single index.cfm page with nested <cfif> clauses
which set out what happens on failed signin attempts but all
redirect back to the index.cfm
vs.
a start index.cfm page which then redirects the user to (say)
a RetrySignIn.cfm page (ie. precluding the need for a <cfif>
check)
My opinion is that simplicity is a very redeeming quality.
With that in mind, I consider putting all business logic into
cfc's for no other reason than to separate logic code from
presentation to be a bad idea because it decreases simplicity and
adds no value.
Putting 100% of your queries into StoredProcedures will
probably increase performance. I don't really know because I've
never really tested it. Also, since I don't use Stored Procedures
for a variety of reasons, I don't know the amount of effort
required to create and maintain them.
This is all subjective. We all have to determine the best way
to handle our own situations.

Similar Messages

  • Best practice guide for Batch Load utility in Oracle UCM.

    Hi,
    Is there any best practice guide for Oracle UCM Batch Loader utility.
    We are looking for information regarding batch size in terms of number and size of contents. Also is there any loading time standards considering the contents are uploaded in filesystem where filestore provider is configured?
    Thanks,
    Krishnendu

    Hi ,
    There are no specific set of steps / practices for batch loading contents to ucm . It would be very much dependent on how many contents does the user have to load to UCM and how well the server is configured in terms of performance .
    You can get more details from the following documentation link : http://docs.oracle.com/cd/E21043_01/doc.1111/e10792/c02_settings009.htm
    Thanks,
    Srinath

  • I canu00B4t get best practices documentation for COPA

    Hello all:
    Can anybody send me the best practices documentation for CO-PA (B86: CO-PA Baseline)? because I can´t get from this link
    http://help.sap.com/bp_biv133/index.htm
    You can send to these e-mail
    [email protected]
    [email protected]
    Thanks a lot in advanced.

    hi Victor,
    sorry, material distribution via email isn't allowed here. not sure why you cannot download, here i can right click that link and 'save as target'.
    for pdf try following
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fb07ab90-0201-0010-c489-d527d39cc0c6
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ff61152b-0301-0010-849f-839fec3771f3
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1910ab90-0201-0010-eea3-c4ac84080806
    hope this helps.

  • Best Practice paper for Security

    Does anyone have or know of a Best Practice Paper for Security?
    Thanks,
    Melissa

    http://www.petefinnigan.com is another excellent security resource-- he has a couple of different checklists.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Where does one find the Oracle Best Practice/recommendations for how to DR

    What is the Oracle Best Practice for install/deployment and configuration of ODI 11g for Disaster Recovery?
    We have a project that is using Oracle ODI 11g (11.1.1.5).
    We have configured all the other Oracle FMW components as per the Oracle DR EDG guides. Basically using the Host ip name/aliasing concept to ‘trick’ the secondary site into thinking
    it is primary and continue working with minimal (or no) manual reconfiguration. But will this work for ODI? The FMW DR guide has sections for SOA, WebCenter and IdM, but nothing for ODI.
    Since ODI stores so much configuration information in the Master Repository..when this DB gets ‘data guarded’ to the secondary site and promoted to Primary…ODI will still think it is at the ‘other’ site. Will this break the actual agents running the scenarios?
    Where does one find the Oracle Best Practice/recommendations for how to DR ODI properly?
    We are looking for a solution that will allow a graceful switchover/failover with minimal manual re-configuration.

    user8804554 wrote:
    Hi all,
    I m currently testing external components with Windows Server and I want to test Oracle 11g R2.
    The only resource I have is this website and the only binaries seem to be for Linux OS.You have one other HUGE resource that, while it won't answer your current question, you'd better start getting familiar with if you are going to use Oracle. That is the complete and official documentation, found at tahiti.oracle.com
    >
    Does anybody know how I can upgrade my Oracle 11.1.0.7 version to the R2 release?
    Thanks,
    Bertrand

  • Best Practice guide for purchasing - payment card processing

    Hello All,
    \Is there any Best Practice guide for “Payments by credit card”/ “Payment card Processing”.
    The biz process is:
    The purchasing department users purchase goods/services using their corporate credit cards. They obtain a credit card voucher/receipt for the purchase made. The credit card co. turns in the credit card statements/files once in a month  the Accounts Payable  matches the receipts with the statements/files & makes the payments.
    Will reward points.
    Thanks & Regards,
    Arpita

    Hi Arpita,
    You might want to check this link
    http://web.mit.edu/sapr3/docs/webdocs/purchpay/ppCC.html
    http://www.bitpipe.com/tlist/Payment-Processing.html
    http://whitepapers.sapinsideronline.com/view.cfm?session=&white_paper=4
    Thanks,
    Jenny
    award points if helpful

  • SAP Best Practice Guide for QM data pull to BI

    Hello Gurus,
    I am looking for SAP Best Practice Guide for Quality Mangament data modelling required for BI. That will solve my problem, to go through all the documentation before concluding to finalize the SAP Delivered Business Content objects.
    Need your input.
    Thanks,
    Lasya.

    Need your inputs experts.
    Thanks,
    Lasya.

  • Request for any Best Practice document for configuring Service Parameters on CUCM 9.1.1

    Hi Team,
    Could you please send if you have any  Best Practice document for configuring Service Parameters on CUCM 9.1.1. That would really help.
    Thanks,
    Guru

    Hi
    There's no 'best practice' as such, but there are a few that I think should be default:
    Enabling CDR, On-Hook Pickup, CFwdAll Override... but really the settings are specific to the requirements of the deployment.
    Aaron

  • Is there any Best Practice Document for OEDQ development?Please share.

    Is there any Best Practice Document for OEDQ development?Please share.

    Hello, Please check the below projects, you would get better idea on the best practices like Naming Standards, which processors to use, how to bundle the jobs, external tasks etc.,
    edq-cds-data-quality-health-check-9.0.4.(645).dxi
    edq-cds-initialize-reference-data-9.0.4.(645).dxi
    Regards,
    Bala Govi

  • Best practice document for ACE30

    Can someone point me to a best practice document for the ACE30.  I am specifically looking at best practices as they relate to resouce allocation, logging, FT, and snmp.  I am migrating from CSM so the VIP/Server configuration is basically set.  I am looking for areas that pertain to the ACE as a whole.
    Thank you

    Good afternoon,
    I'm afraid there isn't a best practices document as such, however, I would suggest you to have a look at the ACE section in doc-wiki (http://docwiki.cisco.com/wiki/Cisco_Application_Control_Engine_%28ACE%29_Troubleshooting_Guide).
    This document can give you some useful insights on different topics, including (but not limited to) resource allocation.
    I hope this helps
    Daniel

  • Best practice document for SRM

    Hi all
    Is there a best practice document for SRM setup and Qucksizing tool for SRM-MDM
    thanks

    Hello,
    SRM related best practice building block is S60 - Self-Service Procurement (Procure 2 Pay)
    Please find the link:
    http://help.sap.com/bp_bblibrary/600/html/S60_EN_DE.htm
    Hope this will be useful.
    Thanks
    Ashutosh

  • Best Practice Analyzer for Exchange 2013

    Greetings,
    I have upgraded the messaging infrastructure from Exchange 2007 to Exchange 2013.
    I want to test the Health of the system through ExBPA for Exchange 2013.
    But i don't find any setup for Exchange 2013 like it was in 2010.
    I went through an article by Office365 community, according to which for In-premises Exchange also we need to have office 365 account (can use trial account also) to get the downloader file for ExBPA 2013.
    http://community.office365.com/en-us/w/deploy/office-365-best-practices-analyzer-for-exchange-server-2013.aspx
    But to run the setup the servers needs to be connected to internet.
    And, i don't want to expose my environment to internet in any condition.
    Somebody, please suggest me if there is any setup available so that i can install directly without exposing to internet.
    Thanks in advance.
    Best Regards,
    K2

    Welcome to Exchange 2013.
    Exchange Server 2013 doesn't come with ExBPA for health check. This might help
    http://exchangeserverpro.com/powershell-script-health-check-report-exchange-2010/
    Apart from that you can run these commands too
    Get-ServerHealth -Identity Exchange2013ServerName
    Test-ServiceHealth
    Cheers,
    Gulab Prasad
    Technology Consultant
    Blog:
    http://www.exchangeranger.com    Twitter:
      LinkedIn:
       Check out CodeTwo’s tools for Exchange admins
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Best Practice tips for publishing Captivate 8 project?

    Does anyone have any Best Practice Tips for publishing Captivate 8 projects?  Is HTML5/Flash the most universal?
    We will begin testing/training before our LMS is functional. 
    We have no shared network capability or SharePoint type platform.  Project is too large for e-mail even when zipped.
    I am thinking that we will have to use thumb drive/CD along those lines.

    Hi  There , 
    Please  refer to  the  below  links  :-
    Adobe Captivate Help | Preview and publish Responsive projects
    Adobe Captivate Help | Publish projects as HTML5 files
    Adobe Captivate * Publishing Projects
    Regards , 
    Ajit 

  • Any best practice recommendations for controlling access to dashboards?

    Everyone,
         I understand that an Xcelsius dashboard compiled into a .swf file contains no means for providing access control to limit who can or how many times they can run the dashboard. Basically, if they have a copy of the .swf they can use it as much as they'd like. To protect access to sensitive data I'd like to be able to control who can access the dashboard and how many times or how long they can access it for.
         From what I've read it seems the simplest way to do this is to embed the swf file into a web portal that requires a user to authenticate before accessing the file. I suppose I can then handle how long they can access it from the back end.
         If I do this, is there anyway a user can do something like <right click - save as> on the flash file to save it on their local machine? Is there a best practice means for properly protecting the dashboard?
    Any advice would be appreciated,
    Jerry Winner

    Everyone,
         I understand that an Xcelsius dashboard compiled into a .swf file contains no means for providing access control to limit who can or how many times they can run the dashboard. Basically, if they have a copy of the .swf they can use it as much as they'd like. To protect access to sensitive data I'd like to be able to control who can access the dashboard and how many times or how long they can access it for.
         From what I've read it seems the simplest way to do this is to embed the swf file into a web portal that requires a user to authenticate before accessing the file. I suppose I can then handle how long they can access it from the back end.
         If I do this, is there anyway a user can do something like <right click - save as> on the flash file to save it on their local machine? Is there a best practice means for properly protecting the dashboard?
    Any advice would be appreciated,
    Jerry Winner

  • PX Best Practice doc for vSphere?

    Is there a best practice doc for utilizing the PX devices in a vSphere environment?  Specifically I'm interested in 'Boot from SAN' for two vSphere 5.1 Host servers (RD630's) dual switch iSCSI connected to a PX12-450.
    If no Best Practice then perhaps a Config doc?
    Thanks

    Hi neilchapman,
    I am not too familiar with vSphere personally or how to boot from SAN, but as far as I know you create the iSCSI LUN on the NAS device and use vSphere to connect to the LUN. Do you need help with setting up the iSCSI LUN or with configuring vSphere? If you need assistance with vSphere, you might want to contact VMware support: http://www.vmware.com/support/vsphere/
    Have questions and need answers?
    Search the database for answers to FAQ's, software/driver downloads, tutorials, news, features and more!
    LenovoEMC Support & Downloads
    LenovoEMC North America Support Contact Page

Maybe you are looking for