Utility Function: GetCurrentDirectory()

This one is really short... I use code like this all over the place, and its always cumbersome to do the nested function call every time.


<cffunction name="GetCurrentDirectory" output="false" access="public" returntype="string">
    <cfreturn GetDirectoryFromPath(GetBaseTemplatePath()) />
</cffunction>

 

Related Blog Entries

Comments

Jon Hartmann, July 2011

I'm Jon Hartmann and I'm a Javascript fanatic, UX/UI evangelist and former ColdFusion master. I blog about mysterious error messages, user interface design questions, and all things baffling and irksome about programming for the web.

Learn more about me.

Post a job. Find one. authenticjobs.com

Interested in becoming a sponsor? Contact me.