> 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"

You shouldn't need the slash or the dot, just extends="baseapp", if
it's in the web root.

> 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.

The answer is no, as you expected.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsit

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:331169
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to