Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / May 2007



Tip: Looking for answers? Try searching our database.

Using CFCs on a Mac

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jasonpresley - 29 May 2007 16:31 GMT
I have been using CFCs on a pc for quite a while and have reciently been able
to get CF to run on my Mac.  I installed it as a standalone server and have
verified that it is working through standard code however I can't use CFCs as I
recieve messages that it can find the cfc.  I have tried several different
paths and syntaxes but I can't get it work.  The web root is wwwroot and I have
my project (site) folders under this folder.  Do I need to map something in the
CF Administrator for it to see them and if so what and how do I do that.  
Anyone been able to get this to work?  Thanks!

Jason Presley
craigkaminsky - 29 May 2007 17:36 GMT
Jason,

I work on a Mac and, in general, I setup mappings for each of my applications.
If I have an application in my cf web root called "myapp". I would setup the
mapping as:
mapping: /myapp
path: /Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/myapp/

As you can tell from my path, I installed CFMX (7.0.2.x) on top of JRun4 (so
it's a little more contorted to get to my cf web root directory).

In my cf code, I would call the cfc like this:
<cfscript>
objMyCfc = createObject("component","myapp.MyCfc");
objMyCfc.init();//etc.
</cfscript>

I've not had any problems using CFCs (and I use them in every application).

Hope this helps!
Craig
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.