cfc - ColdFusion Component gets initiated from wrong path -


i initiating cfc:

<cfset config = new dir.dir1.config() /> 

this works fine. , in opinion without given reason initiates:

<cfset config = new anotherdir.dir.dir1.config() /> 

although code shows first instantiation , if delete or rename anotherdir.dir.dir1.config file throws error component can't found.

which circumstances can cause such behavior? @ end of road wisdom.

when using dot notation, cf first @ path relative folder in. cf might finding cfc on path relative file in before checks path root.

if code says

<cfset config = new dir.dir1.config() > 

and file running code in in directory 'anotherdir' instantiate anotherdir.dir.dir1.config. if outside 'anotherdir' , relative path cannot resolved, attempt find component root directory.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -