5 Replies Latest reply: Apr 28, 2014 6:35 AM by tribule RSS

    One directory above GetDirectoryFromPath(GetTemplatePath())

    WolfShade Community Member

      Hello, everyone.

       

      I'm sure this is going to be super-easy for someone to answer.  I think I've seen the correct answer, before, and I am just not recalling it.

       

      I've tried Googling it; finding a lot of stuff, but not the answer to my question.

       

      In application.cfc, for this.mapping[], how do I indicate a directory one level "up" from current using GetDirectoryFromPath(GetTemplatePath())?

       

      I've got a project in a main folder that contains an admin folder, each with their own application.cfc.  But admin is using components in the main folder, not it's own.

       

      Components are in C:\ColdFusion10\cfusion\wwwroot\project\components\ and the admin is in C:\ColdFusion10\cfusion\wwwroot\project\admin\

       

      V/r,

       

      ^_^