Yea... I knew that. :P I did.. I just completely forgot it. :facepalm:
I hate thinking I'm doing something simple the right way and because it doesn't work, sending myself chasing some white rabbit. Now my question. What's the best way to declare the webroot in front of any include? I'd like to be able to declare each include starting from the webroot, not the relative path. I'm think it's not possible, but does CF have a variable that says 'this is the webroot' ie <cfinclude template="#webroot#/dir/dir/document.cfm"> This way, every instance of a cfinclude requesting that document would be coded exactly the same, regardless of where it's at in the directory structure. On Tue, May 29, 2012 at 12:38 PM, Alan Holden <[email protected]> wrote: > "./dir/" = below the current directory (lazy folks will also use "dir/") > "../dir/" = one directory up the tree > "../../dir/" = two directories up the tree > "../../../dir/" = three up... and so forth > > just adding dots won't work. > > cfinclude paths are relevant to the file where the command sits, not any > parent file/template > > Al > > > > On 5/29/2012 10:07 AM, Jason King wrote: >> >> <cfinclude template="./admin/google/googleAd200x200sb.cfm"> >> <cfinclude template="../admin/google/googleAd200x200sb.cfm"> >> <cfinclude template=".../admin/google/googleAd200x200sb.cfm"> >> >> And for the life of me I can't get it to find this document, even >> though it's there, and if I call it via url from the webroot it finds >> it. >> > > -- > online documentation: http://openbd.org/manual/ > http://groups.google.com/group/openbd?hl=en -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en
