What does efficiency have to do with it? You will not change my mind on the use of cfabort, pure and simple. CFError was introduced to capture errors, and it does a good job of it too. But my question is if you are not using onRequestEnd.cfm what does it matter if you use cfabort or not? Personally I would tentd to not use it, because there might come a time when you need to use the onRequestEnd.cfm for other things and you will end up scratching your head trying to work out why it is not getting run.
Just the same as one has used a CFML template to deliver a PDF, that is an actual cfml template again. Enough said.. Regards, Andrew Scott http://www.andyscott.id.au/ > -----Original Message----- > From: Dave Watts [mailto:dwa...@figleaf.com] > Sent: Wednesday, 29 June 2011 12:52 AM > To: cf-talk > Subject: Re: application.cfm > > > > Pfft, never ever heard that you display then use cfabort. Sorry but > > you not going to ever convince me that cfabort is a good thing in any > > way shape or form, except for debugging purposes. I can show you many > > ways to rewrite it and be more efficient without using cfabort. > > If you want to stop processing, and not generate an HTTP error, there's > nothing wrong with using CFABORT. In any case, I can't imagine what metric > you're using to measure efficiency. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA > Schedule, and provides the highest caliber vendor-authorized instruction at > our training centers, online, or onsite. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~~~~| > Order the Adobe Coldfusion Anthology now! > http://www.amazon.com/Adobe-Coldfusion- > Anthology/dp/1430272155/?tag=houseoffusion > Archive: http://www.houseoffusion.com/groups/cf- > talk/message.cfm/messageid:345833 > Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm > Unsubscribe: http://www.houseoffusion.com/groups/cf- > talk/unsubscribe.cfm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345834 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm