Why does cfide need to be in webroot when using form tag bind on apache with virtual hosts?
All;
First, if this thread is ignorant let me excuse myself. I haven't really programmed in Cold Fusion since the DBML days and it was a CGI interpretter running under O'Reilly webserver. I have been busy in the Java and PHP world.
But I digress, I have returned and I am extremely excited about the features and easy of use in Cold Fusion. I can do a lot more, a lot faster, with a lot less code = more money and more time.
But, I just spent almost 3 sleepless days figuring this out and I was wondering if someone could help educate me on this one. Apologies in advance if this is well documented in the Cold Fusion docs, but I don't read docs, I dive in head first, and usually break my neck.
I am using interdependent <cfselects> with the bind feature to cfcs to populate them. I have based it on the <cfselect> tutorial, example 2.
For reference it is here: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7afe.html
or in your local /cfdocs/
I am using CF under Apache with virtual hosts. CF 9. All setup as a dev machine.
For some reason the <cfselect> binding example 2 worked fine in my apache web root.
But every time I tried to use the example under a virtual host the test page would find the bindFCNS.cfc but the html <selects> in the output would not populate. No errors, just no data.
Copying the /CFIDE/ to the virtual hosts web root solved the problem. This did not seem like the inductive reason at the time, which is why I spent 3 days thinking it might be the way I was implementing Request Handlers in the Application.cfc or how I was handling OnError as well as other errata and other programming customizations.
So, last ditch I just copied the /CFIDE/ to my virtual webroot on two different apache test/dev virtual hosts/domains and these <cfselect> bind examples are working.
My question is WHY? Because honestly this seems extremely arbitrary and when I go to production I really don't want to have to deploy the CFIDE in my webroots for each installation of these application.
So, why?
Is there another solution?
How are people managing this?
Thanks
SteeveCannon
