This content has been marked as final. Show 10 replies
What happened when you tried it?
Sorry for the delay. I get this message:
Could not find the ColdFusion Component dev.robedob.com.cfc.Client
So, it looks for the following path:
instead of this:
<cfobject component="/dev/robedob.com/cfc/Client" name="ObjClient">
Got the same result but with the slashes instead of the dots in the answer.
If nothing else works, i will place the cfcs in the same directory as the calling page, which is the application.cfm. It's just bugging me this dot notation. I also tried with a backshlash like that:
and the forward slash like that:
but had no better luck.
I'm still hoping there is a solution to that problem.
Do you have a default location for components on your administrator?
No. I'm on a shared server and the administrator will not let me set it up.
Ask your host to create a named virtual directory to that folder for you and reference that instead.
I am confused. If in the base of your web site, you have a folder called
cfcs/my/component.cfc. All you should have to do is call it by:
cfcs.my.component or <cfobject name=MyObject"
Where ever the first index.cfm for your site is located (the home page) is
the base of your site.
I am on shared hosting and the path to my cfcs are pet/store/cfcs/. It comes
up as www.mysite.com/pet/store/cfcs.
The location to my component (myComponent.cfc) is then:
<cfobject name="MyPetObject" component="pets.store.cfcs.myComponent"/>
Does that help?
one last piece:
The actual web root on my web hosting is
E:/wwwroot/mywebsite.com/pet/store/cfcs/. So the first part does not matter
because the actually hosting maps your site to E:/wwwroot/mywebsite.com so
it actually starts with the pet folder at the base.
Judging by how you listed your site it may just be
<cfobject name="ClientObj" component="cfc.Client"/>
Thanks for the information. It sure helps. I will give it a try to see if this works. Since my last post, I was able to convince my colocation web administrator to create a path in cf admin, and it works since he created that path.