On Tue, 8 Feb 2005 13:36:11 -0500, Pete Ruckelshaus
<[EMAIL PROTECTED]> wrote:
> I'm converting a new app over to use application.cfc.  Rather than
> load the application.cfc up with UDF's that I use regularly (I would
> normally dump them into application.cfm), I have created a file that
> contains the UDF's that I would like to include (udf_lib.cfm).  I am
> including the file in the onRequestStart method:

onRequestStart/End do not share variables scope with your main page
unless you implement onRequest (in which case you wouldn't need to
implement onRequestStart/End!). Caveat, you need to read the docs
about using web services / Flash Remoting and onRequest.

<cffunction name="onRequest">
        <cfargument name="targetPage" type="string" required="yes">
        <cfinclude template="inc/udf_lib.cfm">
.....more code...
        <cfinclude template="#targetPage#">
</cffunction>
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme
Got Gmail? -- I have 50, yes 50, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193732
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