I saw all kinds of solutions for the cfcs extension in the parent folders with access to the parent files or CF administration, but I did not see a workable solution for the cfc extension in the shared / sibling folder without access to the parent folders.
Does this solution require access to the parent folders? (I don't know what these mappings are, but I don't have access to Application.cfc)
This solution requires the ability to create an application.cfc application that does not work for me (creating one of them in myApp does nothing, because the environment in which I include the index page in myApp and builds from there ... the client never directly calls its for application recognition application.cfc)
For instance:
- Wwwroot / some / path / MYAPP / Shared / Base.cfc
- Wwwroot / some / path / MYAPP / Function / Function.cfc
I am looking to be able to call functionality in Base.cfc (which contains the common methods used in the application) from the Function.cfc function through super and extension.
I have access to all the files in myApp, but not to "wwwroot", "some" or "path."
To extend Base.cfc inside Function.cfc, I have to extend the full path to "some.path.myApp.Shared.Base". This can cause problems if someone renames the myApp folder, since I would have to manually edit each Function.cfc that extends Base.cfc
, "" , , , , , CFC, Base.cfc.
( "..Shared.Base" ), , CFC myApp, , myApp . (MyApp.Shared.Base)
Application.cfm Coldfusion.