> > > Does anyone know of a way to I might be able to bypass the 
> > > onRequest method when calling a  CFC directly?
> >
> > You can put them into a web-accessible directory containing 
> > a separate Application.cfc that doesn't define onRequest. 
>
> Thanks, Dave.  Since I need access to variables in the application  
> scope in my model and controllers, that's not an option.   

Actually, you can use inheritance to take care of this problem for you, with
a base Application.cfc that defines the onApplicationStart and other events
you want defined globally, then one or more Application.cfc files that
extend this - you would define onRequest in one of these children. This
approach is pretty common, in my experience, and is modeled in the official
Adobe Advanced ColdFusion 7 courseware.

> I think I'm just going to forego using that method anyway, since I 
> found a few other instances in which the way it intercepts 
> page requests makes my life harder instead of easier.

I'd probably recommend that in general anyway, unless you have a really good
use for it. It does make page postprocessing trivially easy, though.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255604
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to