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
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
When requesting a CFC (either by createObject() or extends=), you must
supply a dot-notated path that is absolute to the web root. For instance...
- /wwwroot
baseapp.cfc
- - /blog
myclass.cfc
For /blog/myclass.cfc to extend /baseapp.cfc it would be...
extends=baseapp
You could, of
On Thu, Feb 25, 2010 at 9:42 PM, Michael Dinowitz
mdino...@houseoffusion.com wrote:
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
extends=/.baseapp
I haven't actually seen a forward slash used in any component paths, I
don't believe it is allowed. It should be a dot delimited path from
the webroot, so if your baseapp.cfc is in the directory blog under the
webroot, it should be referred to as blog.baseapp
It's
On 26/02/2010 16:42, Michael Dinowitz wrote:
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
That works until the cfc being extended (parent) has the same name as
the cfc doing the extending (child). If I have an application.cfc in
the blog directory and I want it to extend the application.cfc that's
in the root, I have to use /.application
On Fri, Feb 26, 2010 at 1:05 AM, Matt
And there is a quirk that I did not know. Interesting, I've never
before seen / in an inheritance declaration. Do you know if this
follows the Java standard or is this a CF-only thing?
On Thu, Feb 25, 2010 at 10:40 PM, Michael Dinowitz
mdino...@houseoffusion.com wrote:
That works until the cfc
On 26/02/2010 17:43, Judah McAuley wrote:
And there is a quirk that I did not know. Interesting, I've never
before seen / in an inheritance declaration. Do you know if this
follows the Java standard or is this a CF-only thing?
CF certainly.
its a bit old but still relevant:
9 matches
Mail list logo