When you "make a mapping for "/x" to "/" in the OpenBD admin do you put a $
in front of the directory path? (this is for linux only.)
Here is a rough rendering of how I use mappings for CFCs in Ubuntu.
OpenBD admin mappings settings:
Logical Path: /test
Directory Path: $/home/websites/test
/home/websites/test/cfc/localhost.ini
[settings]
cfcMapping=test.cfc.
/home/websites/test/Application.cfc in OnApplicationStart()
configFile = "/home/websites/test/cfc/localhost.ini";
Application.cfcMapping =
getProfileString(configFile,"settings","cfcMapping");
//create objTest for test.cfc anywhere in the application
objTest = CreateObject("component",Application.cfcMapping & "test").init();
On Thu, Dec 29, 2011 at 3:23 AM, David Mulder <[email protected]>wrote:
> Hi guys, another day another issue :-P : if I make a mapping for "/x" to
> "/" it works perfectly if I use cfdirectory to list it's contents (which is
> - as expected - the webapp directory). Next if I want to use the mapping in
> a createObject it won't work if I use an absolute path to the webroot and I
> need to use an absolute system path ("$/[...]/webapps/x") before it works
> which - if I am not too mistaken - should be the same, as is the case if I
> use cfdirectory to output it's contents (which is logical as expandPath
> gives the same output).
> Well, as I already figured out that I need to use absolute paths it isn't
> too big of a problem, but I kind of suspect it's a bug, so I believed it
> worth posting.
>
>
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en