The example I have is a redirect embedded inside business logic. Call a
page, call the object, do a bunch of stuff, have the object throw you
somewhere else. Not dedicated, not validation, just a part of the code. 
I'm going to pull it out and put it into it's own method with solid
validation and debug hooks.

> On Fri, 4 Mar 2005 11:55:53 -0500, Michael Dinowitz
> <[EMAIL PROTECTED]> wrote:
> > This is another 'what are you doing' and 'does it sound right' topics.
> I'm
> > cleaning up some CFCs here and the programmer put some CFLOCATION tags
> > inside the CFC. Anyone else do this? Anyone see a problem with it?
> 
> Well, Mach II is a good example of this. Security filters are
> typically written to check whether you're logged in and, if not, to
> redirect you to a login page. And filters are always CFCs in Mach II.
> 
> > Personally, I'm not happy about it as it breaks encapsulation and makes
> > debugging a chore.
> 
> If the CFC's sole job is to conditionally redirect you, I don't see a
> problem with it.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197490
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to