I'm just looking for verification on what I know about extending cfcs
in the cfcomponent tag.
Lets say for example I have a component called baseapp.cfc sitting in
the web root. I also have an application.cfc in a directory named
/blog. If I want the application.cfc to extend the baseapp.cfc, I have
to use the following syntax:
extends="/.baseapp"
I didn't see anything in CF9 to change the need for this syntax. Is it
possible I missed something? Is there a better way other than creating
a mapping in the CF Admin or moving the extended file out of the root
dir?
Along the same lines of thought, is there a way to extend a component
without knowing it's exact location? Lets say that the blog directory
is now a subdirectory of /myapps. I want an application.cfc that is in
/myapps/blog/admin to extend the application.cfc sitting one level up
in /myapps/blog. I don't know if the blog directory is in the root of
the site, in myapps, or in some other location. All I know is that the
application.cfc I want to extend is one directory up. Is there a way
to do relative inheritance?
I expect the answer is no.
Just double/triple/quadruple checking the basics of inheritance in ColdFusion.
Thanks
--
Michael Dinowitz
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331150
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4