Re: Extending Application.CFC

2014-04-14 Thread Scott Stewart
On 4/11/2014 12:58 PM, Donnie Carvajal wrote: Hi, I have an application with a root application.cfc and a subfolder for IVR access that also has an application.cfc which extends the root application.cfc. There are certain Application variables that I only need in the IVR subfolder, so I

Extending Application.CFC

2014-04-11 Thread Donnie Carvajal
Hi, I have an application with a root application.cfc and a subfolder for IVR access that also has an application.cfc which extends the root application.cfc. There are certain Application variables that I only need in the IVR subfolder, so I added an onApplicationStart method to the

Re: Extending Application.CFC

2014-04-11 Thread Byron Mann
We have a bootloader.cfc file for all common variables in our applications. Each application has different application names, so each app is separate. In the application start we include the bootloader and then override variables as needed. This has worked pretty well pasting all our legacy

Re: Extending Application.CFC

2014-04-11 Thread Russ Michaels
does each of your application.cfc have a different application name ? On Fri, Apr 11, 2014 at 5:58 PM, Donnie Carvajal donnie.carva...@transformyx.com wrote: Hi, I have an application with a root application.cfc and a subfolder for IVR access that also has an application.cfc which

Re: Extending Application.CFC

2014-04-11 Thread Donnie Carvajal
Hi Byron, IVR stands for Interactive Voice Response. This particular app allows users to login via phone, so I want the same logic as the web app for logging in. Hi Russ, Currently, both application.cfc's have the same application name. Donnie does each of your application.cfc have a

Re: Extending Application.CFC

2014-04-11 Thread Donnie Carvajal
Hi Russ, To be more specific, I am not setting the application name in the sub application.cfc. Donnie Hi Byron, IVR stands for Interactive Voice Response. This particular app allows users to login via phone, so I want the same logic as the web app for logging in. Hi Russ,

Re: Extending Application.CFC

2014-04-11 Thread Russ Michaels
that is why you are having the issue then. If you give the applications different names, then they will also startup separately and your variables will be separate On Fri, Apr 11, 2014 at 6:28 PM, Donnie Carvajal donnie.carva...@transformyx.com wrote: Hi Byron, IVR stands for Interactive

Re: Extending Application.CFC

2014-04-11 Thread Cameron Childress
On Fri, Apr 11, 2014 at 12:58 PM, Donnie Carvajal wrote: I have an application with a root application.cfc and a subfolder for IVR access that also has an application.cfc which extends the root application.cfc. There are certain Application variables that I only need in the IVR subfolder,

Re: Extending Application.CFC

2014-04-11 Thread Donnie Carvajal
Thanks Cameron, I would like to set different application names, but I've had issues in the past. I don't remember exactly, but I think there were some application variables not accessible. What are the pros and cons for using separate application names? Are there any caveats I should be

Re: Extending Application.CFC

2014-04-11 Thread Cameron Childress
On Fri, Apr 11, 2014 at 3:42 PM, Donnie Carvajal wrote: What are the pros and cons for using separate application names? Are there any caveats I should be aware of if I decide to use separate application names? Separate application names result in separate applications. There are no

Re: Extending Application.CFC

2014-04-11 Thread Russ Michaels
Try setting it Russ Michaels www.michaels.me.uk cfmldeveloper.com cflive.net cfsearch.com On 11 Apr 2014 18:29, Donnie Carvajal donnie.carva...@transformyx.com wrote: Hi Russ, To be more specific, I am not setting the application name in the sub application.cfc. Donnie Hi Byron,

Extending application.cfc

2009-01-04 Thread jonese
Hey all. I have been extending an Application.cfc from my root in a sub directory using mappings. I recently implemented THIS.mappings and it doesn't appear that the mapping for the extended Application.cfc is working. can anyone test this and confirm deny it? Thanks in advance!

Re: Extending application.cfc

2009-01-04 Thread s. isaac dealey
Hey all. I have been extending an Application.cfc from my root in a sub directory using mappings. I recently implemented THIS.mappings and it doesn't appear that the mapping for the extended Application.cfc is working. can anyone test this and confirm deny it? You can't. Mappings created

Re: Extending application.cfc

2009-01-04 Thread s. isaac dealey
And then in your subdirectory/Application.cfc use extends=appcfcproxy.cfc Or rather extends=appcfcproxy... oops! -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 781.769.0723 http://onTap.riaforge.org/blog

Re: Extending Application.cfc

2008-06-17 Thread Didgiman
Nobody? What's this? First y'all tell me to install Apache, just like you did, but when I ask for an example config file, nobody has one? Come on, help a guy out here... Thanks On Mon, Jun 16, 2008 at 9:26 PM, Didgiman [EMAIL PROTECTED] wrote: Ok, ok, you all convinced me. I went along and

Re: Extending Application.cfc

2008-06-17 Thread Cutter (CFRelated)
I have several tutorials on my site for integrating CF and Apache, with some step-by-step stuff on modifying your config files: http://blog.cutterscrossing.com/index.cfm/Apache Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer

Re: Extending Application.cfc

2008-06-17 Thread Didgiman
Thanks Steve, that really helped a lot! However, I'm still having problems when creating a site that has the documentRoot outside the webroot. When I do that, I get the 403 Forbidden error. Any sugestions? I'm running Vista... (sorry ;o) This is my VirtualHost in the config file: DocumentRoot

RE: Extending Application.cfc

2008-06-17 Thread Dave Watts
However, I'm still having problems when creating a site that has the documentRoot outside the webroot. When I do that, I get the 403 Forbidden error. Set permissions on that directory to allow read/execute for authenticated users. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/

Re: Extending Application.cfc

2008-06-17 Thread Didgiman
Tried that, didn't work... What did work: I moved my VirtualHost descriptions to the bottom of the conf file, and added this right before it: Directory C:\wwwroot\site1 AllowOverride All Order allow,deny Allow from all /Directory On Tue, Jun 17, 2008 at 4:33 PM, Dave Watts

Re: Extending Application.cfc

2008-06-17 Thread denstar
I've done the same thing. Thank god for google, and manuals! =] On Tue, Jun 17, 2008 at 8:36 AM, Didgiman [EMAIL PROTECTED] wrote: Tried that, didn't work... What did work: I moved my VirtualHost descriptions to the bottom of the conf file, and added this right before it: Directory

RE: Extending Application.cfc

2008-06-16 Thread Brad Wood
I won't lie to you. If you've never used it, I do think Apache is harder to setup than IIS, or even CF but I still switched to it a long time ago on my home PC because I wanted multiple sites. I love it and I'm glad I did it. (And there's tons of info about it lying around the 'net) ~Brad

Re: Extending Application.cfc

2008-06-16 Thread Didgiman
Ok, ok, you all convinced me. I went along and installed Apache. However, I can't get it to run multiple sites and have the root /CFIDE/ still working (for the CF admin). Can someone please send me a copy of their httpd.conf file, so I can compare it to mine to see what I'm doing wrong. If

Re: Extending Application.cfc

2008-06-15 Thread s. isaac dealey
Oh... I guess I skimmed over the fact that this was to get around the single-site limitation in the XP Pro version of IIS... So yeah, if that's the issue, I definitely recommend Apache -- it's honestly not any more difficult to set up and configure than ColdFusion imo. I use it on my notebook as

Re: Extending Application.cfc

2008-06-14 Thread Mike Kear
Wim, I played around with this same problem one way and another for ages.If I understand it correctly, the problem stems from the fact that IIS as it is in XPPro only allows one site per machine, and if you want multiple sites, you either have to do somthing smart with Application.cfc or keep

Extending Application.cfc

2008-06-13 Thread Didgiman
Hi all, I really hope someone can help me out here, as I can't figure out how to do this. Lets assume the following structure (on my local pc): wwwroot mywebsite1 mywebsite2 Application.cfc ApplicationProxy.cfc (which basically just extends Application.cfc) admin

Re: Extending Application.cfc

2008-06-13 Thread Azadi Saryev
what i do, is set 2 different app scope vars that hold path to cfc dir (in your case that will be website's root) for localhost and remote (production) site: cffunction name=onApplicationStart output=no returntype=boolean !--- set server-specific app vars (LOCAL server and REMOTE server)

Re: Extending Application.cfc

2008-06-13 Thread Didgiman
Thanks a lot for the quick reply. It would have been so awesome if what you propose works, but unfortunately, it doesn't :o( When extending the lower Application.cfc like this: cfcomponent extends=#application.cfcpath#ApplicationProxy ... I still get the This expression must have a constant

Re: Extending Application.cfc

2008-06-13 Thread Azadi Saryev
oops, right, with application proxies that won't work in app scope - try server scope instead. i.e. server.mywebsite2.cfcpath = '...' Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Didgiman wrote: Thanks a lot for the quick reply. It would have been so awesome if what you propose

Re: Extending Application.cfc

2008-06-13 Thread Didgiman
As I expected, that doesn't work either. I still get the The expression must have a constant value error. The extends attribute cannot hold a #variable# (I think that is because extending the component is done at compiletime, not runtime). There should be a way, no? The location of the component

Re: Extending Application.cfc

2008-06-13 Thread Will Tomlinson
As I expected, that doesn't work either. I still get the The expression must have a constant value error. The extends attribute cannot hold a #variable# (I think that is because extending the component is done at compiletime, not runtime). This is exactly why I stopped using the built-in web

Re: Extending Application.cfc

2008-06-13 Thread Didgiman
If only Adobe could give us relative path support for extending components... Then, I could do like this cfcomponent extends=../Application. Life could be beautiful... ~| Adobe® ColdFusion® 8 software 8 is the most important and

Re: Extending Application.cfc

2008-06-13 Thread Will Tomlinson
If only Adobe could give us relative path support for extending components... Then, I could do like this cfcomponent extends=../Application. Life could be beautiful... It IS relative. Relative to the site root, which CF sees as wwwroot/. Will

Re: Extending Application.cfc

2008-06-13 Thread Didgiman
You know what I mean. On Fri, Jun 13, 2008 at 2:11 PM, Will Tomlinson [EMAIL PROTECTED] wrote: If only Adobe could give us relative path support for extending components... Then, I could do like this cfcomponent extends=../Application. Life could be beautiful... It IS relative. Relative to

RE: Extending Application.cfc

2008-06-13 Thread Dave Watts
Now, what do I have to do to be able to use the same code for development and production? I cannot evaluate the correct path to the root Application.cfc like this: cfcomponent extends=#IIF(cgi.server_name EQ '127.0.0.1', DE('mywebsite2.ApplicationProxy'), DE('ApplicationProxy'))#

Re: Extending Application.cfc

2008-06-13 Thread Didgiman
So, basically, if I don't want to rethink and rebuild my whole development environment, I should stick with good 'ol Application.CFM? There you could simply do cfinclude template=../Application.cfm. It seems indeed that you can't is the answer here, but shouldn't it be possible to do that? Is

RE: Extending Application.cfc

2008-06-13 Thread Dave Watts
So, basically, if I don't want to rethink and rebuild my whole development environment, I should stick with good 'ol Application.CFM? I guess, but in any case, your development environment should match your production environment as closely as possible. If things like file paths aren't very

Re: Extending Application.cfc

2008-06-13 Thread Brian Kotek
Just set up a mapping on the production server that maps the site root to mywebsite2. Then specify the package using mywebsite2 and it will work in both places the same way. Locally, because the site is in a subfolder or the root named mywebsite2, and in production because of the mapping. On Fri,

Re: Extending Application.cfc

2008-06-13 Thread Will Tomlinson
So, basically, if I don't want to rethink and rebuild my whole development environment, I should stick with good 'ol Application.CFM? There you could simply do cfinclude template=../Application.cfm. Dude, I went through this same exact issue. I fought and fought myself over changing my

RE: Extending Application.cfc

2008-06-13 Thread Dave Watts
Dude, I went through this same exact issue. I fought and fought myself over changing my development environment. Do what I didinstall apache, change a few simple settings in apache's httpd config file, add a few dev domains in your windows hosts file, and presto, you have an easy

Re: Extending Application.cfc

2008-06-13 Thread Will Tomlinson
Just kidding, Will. Phe! I was about ready ta send the disruptor after ya :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

RE: Extending Application.cfc

2008-06-13 Thread Brad Wood
Speaking of... what ever happened to Dave the Disruptor? ~Brad -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2008 5:47 PM To: CF-Talk Subject: Re: Extending Application.cfc Just kidding, Will. Phe! I was about ready ta send

Re: Extending Application.cfc

2008-06-13 Thread Charlie Griefer
:[EMAIL PROTECTED] Sent: Friday, June 13, 2008 5:47 PM To: CF-Talk Subject: Re: Extending Application.cfc Just kidding, Will. Phe! I was about ready ta send the disruptor after ya :) ~| Adobe® ColdFusion® 8

Re: Extending Application.cfc

2008-06-13 Thread Didgiman
] wrote: Speaking of... what ever happened to Dave the Disruptor? ~Brad -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2008 5:47 PM To: CF-Talk Subject: Re: Extending Application.cfc Just kidding, Will. Phe! I was about

Re: Extending Application.cfc

2008-06-13 Thread Charlie Griefer
: Re: Extending Application.cfc Just kidding, Will. Phe! I was about ready ta send the disruptor after ya :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date

Re: Extending Application.cfc

2008-06-13 Thread Dave l
ok now you have frickin done it!!! lol ok this is cf talk so i will be good.. as much as it actually pains me to do so a few days ago communitymx.com had something on this subject Who is Dave the Disruptor? Oops, did I wake him up?

Re: Extending Application.cfc

2008-06-13 Thread Dave l
yes Will but he might actually have more than 1 site to move so it could be an issue (couldn't resist!) I do agree though that you should mirror your sites with production just because you use apache locally and iis in production doesn't really matter, the goal is to make each one a root. You

Re: Extending Application.cfc

2008-06-13 Thread Charlie Griefer
see? see what happens? :) On Fri, Jun 13, 2008 at 4:45 PM, Dave l [EMAIL PROTECTED] wrote: yes Will but he might actually have more than 1 site to move so it could be an issue (couldn't resist!) I do agree though that you should mirror your sites with production just because you use

Re: Extending Application.cfc

2008-06-13 Thread Didgiman
Hi Dave, Thanks for the tip. I purchased the article on CommunityMx, but it just elaborates on the use of ApplicationProxy.cfc and how an Application.cfc can extend another Application.cfc that extends ApplicationProxy.cfc that extends Application.cfc that resides in the web root. Best 4 bucks I

Re: Extending Application.cfc

2008-06-13 Thread Wim Lemmens
Oh there you are, Dave... Thanks for the tip. I purchased the article on CommunityMx, but it just elaborates on the use of ApplicationProxy.cfc and how an Application.cfc can extend another Application.cfc that extends ApplicationProxy.cfc that extends Application.cfc that resides in the web

Re: Extending Application.cfc

2008-06-13 Thread Will Tomlinson
Hi Dave, Thanks for the tip. I purchased the article on CommunityMx, but it just elaborates on the use of ApplicationProxy.cfc and how an Application.cfc can extend another Application.cfc that extends ApplicationProxy.cfc that extends Application.cfc that resides in the web root. Best 4 bucks I

Re: Extending Application.cfc

2008-06-13 Thread s. isaac dealey
Hi Didgiman, I discovered a neat trick the other day that some folks here will tell you isn't possible. :) But I assure you it is... Check out this article http://ontap.riaforge.org/blog/index.cfm/2008/5/27/trick At the bottom of that article is a link to download a small zip archive

Re: Extending Application.cfc using mappings

2008-05-04 Thread Andrew Scott
Bad very bad:-) Your problem is that before the mappings for compents is created, the extends is trying to find that component components.ApplicationCMS. I have falling into this trap, and there is nothing you can do about it. Unless you have your mapping as predefined for the application.

Extending Application.cfc using a mapping question

2008-05-02 Thread marc --
Hello, I have a folder components off the webroot. I have 2 applications, A and B, both in their own webroot. I want both of them to extend the Application.cfc in the folder components. So: D:www/components/ApplicationRoot.cfc is extended by D:/www/wwwroot/ApplicationA/Application.cfc and

Extending Application.cfc using mappings

2008-05-02 Thread marc --
Hello, I want to extend ApplicationCMS.cfc I have in an off-webroor folder. I am on a shared hosting environment so I want to create my mappings in Application.cfc, not in Cfadministrator. The mappings are not recognized this way. When I create a mapping in the administrator (locally) it works.

Re: Extending Application.cfc using mappings

2008-05-02 Thread marc --
sorry for the double posting - it takes a while before posts get through here so I thought it got lost somehow (or I didn't post at all...). I googled and found this on http://groups.google.com/group/farcry-beta/browse_thread/thread/7ec1c03df22675af suggesting mappings don't work with the

Re: Extending Application.cfc using mappings

2008-05-02 Thread Geoff Bowers
2008/5/3 marc -- [EMAIL PROTECTED]: I googled and found this on http://groups.google.com/group/farcry-beta/browse_thread/thread/7ec1c03df22675af suggesting mappings don't work with the extend keyword. Application Specific Mappings are a furphy and do not work as advertised in CF8. It

Extending Application.cfc

2007-03-29 Thread Jen N
I was hoping to get some help on Extending Application.cfc's to subfolders. We have researched and seen this has been discussed in great length, but have yet to find a solution that works. Many are the same type of idea, but here's one from Adobe

Re: Extending Application.cfc

2007-03-29 Thread Will Tomlinson
One thing I do is use a proxyApplication.cfc in the root that extends the root application.cfc. Then in the subfolder app.cfc's, extend them to testfolder.user.username.yourapp.proxyApplication Or could you create a mapping to it? Will

Re: Extending Application.cfc

2007-03-29 Thread Dan Vega
I use a similar approach to will. I have actually put together a short article on my approach if you are interested in reading more about it. http://www.danvega.org/blog/index.cfm/2006/7/25/Application-Inheritance Dan On 3/29/07, Will Tomlinson [EMAIL PROTECTED] wrote: One thing I do is use a

Re: Extending Application.cfc

2007-03-29 Thread Will Tomlinson
Right, sean's the one that told me to do it like that. Good advice, seems to work perfectly. Will ~| Create Web Applications With ColdFusion MX7 Flex 2. Build powerful, scalable RIAs. Free Trial

Re: Extending Application.cfc

2007-03-29 Thread Jen N
Thanks guys! I must apologize as I was trying to condense post. . . but we have actually tried these exact methods. Let me give you a better idea of our folder structure: wwwroot - testfolder - user - username1 - OurApplication - subfolder1