Re: Including App.cfc in App.cfc

2005-07-08 Thread Jared Rypka-Hauer - CMG, LLC
Will...

In your first application.cfc you're going to create application.dsn, right? 
Along with this.name http://this.name, yes?

So your second application.cfc is going to have this.name
http://this.nameas well, yes? And if it's the same string as the
name in the first
application.cfc, it's going to be looking at the same application space as 
the first one.

So, in your first application.cfc you create application.dsn = mydsn... so 
long as they're running on the same server it's going to see the same values 
under the same names in the application scope.

In other words you join the data in memory by the name specified in the 
space inside the cfcomponent tag and outside any of the cffunction tags... 
by giving them the same name you join them logically in the server's memory. 
It's effectively the exact same thing as cfincluding an
Application.cfmfile, but different in implementation.

HTH,

J

On 7/7/05, Will Tomlinson [EMAIL PROTECTED] wrote:
 
 If I have an Application.cfc in the site root, and it contains an 
 APPLICATION.DSN variable, and there's an admin folder with its own App.cfc, 
 how would I include the root's APP.DSN inside the admin folder's app.cfc?
 
 When I used App.cfm I just included the root App.cfm.
 
 Thanks,
 Will
 
 
 

~|
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:211409
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


Re: Including App.cfc in App.cfc

2005-07-08 Thread Will Tomlinson
So your second application.cfc is going to have this.name
http://this.nameas well, yes? And if it's the same string as the
name in the first
application.cfc, it's going to be looking at the same application space as 
the first one.



A yes! I THOUGHT that might be a possibility, but haven't had time to test 
it.

Thankgya J!

Will 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211411
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Including App.cfc in App.cfc

2005-07-08 Thread S . Isaac Dealey
 -Original Message-
 From: Will Tomlinson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 07, 2005 10:44 PM
 To: CF-Talk
 Subject: Including App.cfc in App.cfc

 If I have an Application.cfc in the site root, and it
 contains an
 APPLICATION.DSN variable, and there's an admin folder
 with its own
 App.cfc, how would I include the root's APP.DSN inside
 the admin folder's
 app.cfc?

 When I used App.cfm I just included the root App.cfm.

 Well... it is just a CFC.  Can't you just CFINVOKE the
 other Application.cfc
 methods in the child one?

You could do that, or Tim recommended using a separate template and
using cfinclude in each applicaiton.cfc to set them... You would
just put the cfinclude tag in the onApplicationStart method. He also
suggested using the same application name in both cfc's which is fine,
but you still have to set or param the variable in both, so you would
still need the cfinclude template.

Alternately you could design something _like_ the onTap framework's
tiered request stages where you have a single Application.cfc which
sets the variables in the onApplicationStart method and variations
between the root application and the admin application are handled by
including code in multiple templates or directories in the
onRequestStart method.

cffunction name=onRequestStart
  cfset var x = 0
  cfset var local = structnew()
  cfset local.approot =
getDirectoryFromPath(getCurrentTemplatePath())
  cfset local.targetpath =
getDirectoryFromPath(getBaseTemplatePath())
  cfset local.target =
listtoarray(replace(local.targetpath,local.approot,),/\)
  cfset local.path = 
  cfset arrayprepend(local.target,)

  cfloop index=x from=1 to=#arraylen(local.target)#
cfset local.path = listappend(local.path,local.target[x])
cfif FileExists(local.approot  local.path  /settings.cfm)
  cfinclude template=#local.path#/settings.cfm
/cfif
  /cfloop
/cffunction

I've never considered this very complicated... although some people
have... anyway, this method (or something like it) would allow you to
have the equivalent of something like the old app_locals.cfm concept
without the need to include a template in each base template (like the
nested Application.cfm templates), since the single Application.cfc
would handle it for as many nested directories as you need.

s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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


Re: Including App.cfc in App.cfc

2005-07-08 Thread S . Isaac Dealey
The Application.cfc in the nested directory will omit the
Application.cfc code in the parent directory... this means that much
of the code to set these variables would need to be duplicated in both
cfc's. What I read (and I could be misinterpreting) is that he wanted
a way to eliminate the need to duplicate that code.

 Will...

 In your first application.cfc you're going to create
 application.dsn, right?
 Along with this.name http://this.name, yes?

 So your second application.cfc is going to have this.name
 http://this.nameas well, yes? And if it's the same
 string as the
 name in the first
 application.cfc, it's going to be looking at the same
 application space as
 the first one.

 So, in your first application.cfc you create
 application.dsn = mydsn... so
 long as they're running on the same server it's going to
 see the same values
 under the same names in the application scope.

 In other words you join the data in memory by the name
 specified in the
 space inside the cfcomponent tag and outside any of the
 cffunction tags...
 by giving them the same name you join them logically in
 the server's memory.
 It's effectively the exact same thing as cfincluding an
 Application.cfmfile, but different in implementation.


s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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


Re: Including App.cfc in App.cfc

2005-07-08 Thread Eddie Awad
On 7/8/05, S. Isaac Dealey [EMAIL PROTECTED] wrote:
 The Application.cfc in the nested directory will omit the
 Application.cfc code in the parent directory... this means that much
 of the code to set these variables would need to be duplicated in both
 cfc's. What I read (and I could be misinterpreting) is that he wanted
 a way to eliminate the need to duplicate that code.

Why not make the Application.cfc in the subfolder inherit (extend) the
Application.cfc in the root folder? This will eliminate duplication.
Here is a quote from a CF technote about extending the ColdFusion MX 7
application framework: You can set/implement everything that applies
to all your applications at the top level, and then inherit from it as
many levels deep as you need to. If you need to override something in
a lower level Application.cfc, you have that ability as well. Read
the whole technote here:
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=9ce734f4

-- 
Eddie Awad.
http://awads.net/

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211442
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Including App.cfc in App.cfc

2005-07-08 Thread Jared Rypka-Hauer - CMG, LLC
I read that he wanted a way to insure that app-scope vars would exist at the 
right names across several separate folders.

Or, you could do what Sean Corfield blogged about a while ago:

/appProxy.cfc
/Application.cfc extends=appProxy
/admin/Application.cfc extends=appProxy

That would, from a CFC development standpoint be EXACTLY the same as 
cfincluding Application.cfm, except for the fact that with CFCs and the 
extends attribute you can do things like calling super.onSessionEnd() in 
your onSessionEnd() method (which means your calling the parent's version 
from the child version...)(that was for others, Isaac, not you *g*)

So you code appProxy.cfc as you normally would your Applicaiton.cfc and use 
it for the base class for your other Application.cfcs.

And for that matter, if you REALLY wanted, you could write an 
application.cfc that looks like this:

cfinclude template=/application.cfc /

But that's pretty darned messy.

HTH,
J

On 7/8/05, S. Isaac Dealey [EMAIL PROTECTED] wrote:
 
 The Application.cfc in the nested directory will omit the
 Application.cfc code in the parent directory... this means that much
 of the code to set these variables would need to be duplicated in both
 cfc's. What I read (and I could be misinterpreting) is that he wanted
 a way to eliminate the need to duplicate that code.
 
  Will...
 
  In your first application.cfc you're going to create
  application.dsn, right?
  Along with this.name http://this.name http://this.name, yes?
 
  So your second application.cfc is going to have this.namehttp://this.name
  http://this.nameas well, yes? And if it's the same
  string as the
  name in the first
  application.cfc, it's going to be looking at the same
  application space as
  the first one.
 
  So, in your first application.cfc you create
  application.dsn = mydsn... so
  long as they're running on the same server it's going to
  see the same values
  under the same names in the application scope.
 
  In other words you join the data in memory by the name
  specified in the
  space inside the cfcomponent tag and outside any of the
  cffunction tags...
  by giving them the same name you join them logically in
  the server's memory.
  It's effectively the exact same thing as cfincluding an
  Application.cfmfile, but different in implementation.
 
 
 s. isaac dealey 954.522.6080
 new epoch : isn't it time for a change?
 
 add features without fixtures with
 the onTap open source framework
 
 http://www.fusiontap.com
 http://coldfusion.sys-con.com/author/4806Dealey.htm
 
 
 

~|
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:211443
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Including App.cfc in App.cfc

2005-07-08 Thread Will Tomlinson
Yeah, I was pretty much giving a basic example, using a DSN variable. I'll just 
need it to simply be available throughout the site and its directories. 

Thanks guys! 

Will

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211450
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Including App.cfc in App.cfc

2005-07-08 Thread S . Isaac Dealey
In retrospect, Jared  Eddie's suggestions are better for general
consumption. :)

Although I will say that for a new app, using the onTap framework
makes the issue moot due to its nested directory execution. :)


s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211459
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Including App.cfc in App.cfc

2005-07-08 Thread Sean Corfield
On 7/8/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote:
 Or, you could do what Sean Corfield blogged about a while ago:
 
 /appProxy.cfc
 /Application.cfc extends=appProxy
 /admin/Application.cfc extends=appProxy

Almost... Check my blog:

http://corfield.org/blog/index.cfm?do=blog.entryentry=C8AF0DA4-0E78-FC9E-6975A16624A1E3C1

/Application.cfc
/AppProxy.cfc extends=Application
/admin/Application.cfc extends=AppProxy

And don't forget to call super() as appropriate in any methods you
override (in admin.Application).
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
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:211478
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


Re: Including App.cfc in App.cfc

2005-07-08 Thread Jared Rypka-Hauer - CMG, LLC
I suppose, depending on the needs of the specific application you could go 
either way.

If your Application.cfc's all inherited from a specific
ApplicationProxy.cfcthen you could make global changes easily without
being forced to change the
Application.cfc in your root. But, if you have one Application.cfc that 
needs to be the parent of all of them, having your proxy inherit from it 
would also make sense.

But since I was working from memory I'm glad I got close... and thanks for 
the correction.

Laterz,
J

On 7/8/05, Sean Corfield [EMAIL PROTECTED] wrote:
 
 On 7/8/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote:
  Or, you could do what Sean Corfield blogged about a while ago:
 
  /appProxy.cfc
  /Application.cfc extends=appProxy
  /admin/Application.cfc extends=appProxy
 
 Almost... Check my blog:
 
 
 http://corfield.org/blog/index.cfm?do=blog.entryentry=C8AF0DA4-0E78-FC9E-6975A16624A1E3C1
 
 /Application.cfc
 /AppProxy.cfc extends=Application
 /admin/Application.cfc extends=AppProxy
 
 And don't forget to call super() as appropriate in any methods you
 override (in admin.Application).
 --
 Sean A Corfield -- http://corfield.org/
 Team Fusebox -- http://fusebox.org/
 Got Gmail? -- I have 50, yes 50, invites to give away!
 
 If you're not annoying somebody, you're not really alive.
 -- Margaret Atwood
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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


Re: Including App.cfc in App.cfc

2005-07-08 Thread Adrocknaphobia
I like the appProxy.cfc, but take a step further an put all those
constants in an xml file that appProxy can parse. That way whoever is
deploying your app or managing the server (even if its you) won't have
to mess around with cf code. Then you can have seperate xml files for
your different deployments but a single build or the application.

-Adam

On 7/8/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote:
 I suppose, depending on the needs of the specific application you could go
 either way.
 
 If your Application.cfc's all inherited from a specific
 ApplicationProxy.cfcthen you could make global changes easily without
 being forced to change the
 Application.cfc in your root. But, if you have one Application.cfc that
 needs to be the parent of all of them, having your proxy inherit from it
 would also make sense.
 
 But since I was working from memory I'm glad I got close... and thanks for
 the correction.
 
 Laterz,
 J
 
 On 7/8/05, Sean Corfield [EMAIL PROTECTED] wrote:
 
  On 7/8/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote:
   Or, you could do what Sean Corfield blogged about a while ago:
  
   /appProxy.cfc
   /Application.cfc extends=appProxy
   /admin/Application.cfc extends=appProxy
 
  Almost... Check my blog:
 
 
  http://corfield.org/blog/index.cfm?do=blog.entryentry=C8AF0DA4-0E78-FC9E-6975A16624A1E3C1
 
  /Application.cfc
  /AppProxy.cfc extends=Application
  /admin/Application.cfc extends=AppProxy
 
  And don't forget to call super() as appropriate in any methods you
  override (in admin.Application).
  --
  Sean A Corfield -- http://corfield.org/
  Team Fusebox -- http://fusebox.org/
  Got Gmail? -- I have 50, yes 50, invites to give away!
 
  If you're not annoying somebody, you're not really alive.
  -- Margaret Atwood
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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


Re: Including App.cfc in App.cfc

2005-07-08 Thread Sean Corfield
On 7/8/05, Adrocknaphobia [EMAIL PROTECTED] wrote:
 I like the appProxy.cfc, but take a step further an put all those
 constants in an xml file that appProxy can parse.

Or use ColdSpring and have its bean factory manage the configuration
based on XML files!
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

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

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211485
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Including App.cfc in App.cfc

2005-07-07 Thread Will Tomlinson
If I have an Application.cfc in the site root, and it contains an 
APPLICATION.DSN variable, and there's an admin folder with its own App.cfc, how 
would I include the root's APP.DSN inside the admin folder's app.cfc? 

When I used App.cfm I just included the root App.cfm.

Thanks,
Will
 

~|
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:211402
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Including App.cfc in App.cfc

2005-07-07 Thread Jim Davis
 -Original Message-
 From: Will Tomlinson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 07, 2005 10:44 PM
 To: CF-Talk
 Subject: Including App.cfc in App.cfc
 
 If I have an Application.cfc in the site root, and it contains an
 APPLICATION.DSN variable, and there's an admin folder with its own
 App.cfc, how would I include the root's APP.DSN inside the admin folder's
 app.cfc?
 
 When I used App.cfm I just included the root App.cfm.

Well... it is just a CFC.  Can't you just CFINVOKE the other Application.cfc
methods in the child one?

Jim Davis





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211403
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Including App.cfc in App.cfc

2005-07-07 Thread Loathe
Just the one variable but not the rest of the template?

I don't think you can do that.

You could set up an apps_globals.cfm to hold all of your sitewide variables
and include that in each Application.cfm.

If you don't mind having access to the rest of your application scoped
variables, you could also just give them the same application name in your
cfapplication tag.  You would need to be careful about overwriting the
application variables then, and possibly naming something the same way.

Tim

-Original Message-
From: Will Tomlinson [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 07, 2005 10:44 PM
To: CF-Talk
Subject: Including App.cfc in App.cfc


If I have an Application.cfc in the site root, and it contains an
APPLICATION.DSN variable, and there's an admin folder with its own App.cfc,
how would I include the root's APP.DSN inside the admin folder's app.cfc?

When I used App.cfm I just included the root App.cfm.

Thanks,
Will




~|
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:211404
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Including App.cfc in App.cfc

2005-07-07 Thread Loathe
have to read more carefully :)

-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 07, 2005 10:47 PM
To: CF-Talk
Subject: RE: Including App.cfc in App.cfc


 -Original Message-
 From: Will Tomlinson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 07, 2005 10:44 PM
 To: CF-Talk
 Subject: Including App.cfc in App.cfc

 If I have an Application.cfc in the site root, and it contains an
 APPLICATION.DSN variable, and there's an admin folder with its own
 App.cfc, how would I include the root's APP.DSN inside the admin folder's
 app.cfc?

 When I used App.cfm I just included the root App.cfm.

Well... it is just a CFC.  Can't you just CFINVOKE the other Application.cfc
methods in the child one?

Jim Davis







~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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


RE: Including App.cfc in App.cfc

2005-07-07 Thread Jim Davis
 -Original Message-
 From: Loathe [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 07, 2005 10:56 PM
 To: CF-Talk
 Subject: RE: Including App.cfc in App.cfc
 
 have to read more carefully :)

I dunno - the question (sorry Will!) was a little confusing.  ;^)

Jim Davis





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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


RE: Including App.cfc in App.cfc

2005-07-07 Thread Loathe
I meant me, not you man :)

-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 07, 2005 10:58 PM
To: CF-Talk
Subject: RE: Including App.cfc in App.cfc


 -Original Message-
 From: Loathe [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 07, 2005 10:56 PM
 To: CF-Talk
 Subject: RE: Including App.cfc in App.cfc

 have to read more carefully :)

I dunno - the question (sorry Will!) was a little confusing.  ;^)

Jim Davis







~|
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:211407
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Including App.cfc in App.cfc

2005-07-07 Thread Jim Davis
 -Original Message-
 From: Loathe [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 07, 2005 11:04 PM
 To: CF-Talk
 Subject: RE: Including App.cfc in App.cfc
 
 I meant me, not you man :)

So did I mean you not me... or... um...

Anyway - I just was just saying you shouldn't feel that bad.  ;^)

Jim Davis




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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