House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Coldfusion Packages

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Byte Me
12/31/2011 11:34 AM

Are subdirectories considered part of the parent directory package? Or (in the case of one parent and one child directory) be considered two separate packages? The reason I ask is because I came across a statement, "A package is a group of components in the same directory (and its subdirectories) on the Coldfusion server." Statement was found in book "Advanced Macromedia Coldfusion MX 7 Application Development" page 578. When testing, if I used the attribute access="package" in the subdirectory, I couldn't access the function from the parent directory, it worked for access="public".

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Justin Scott
12/31/2011 03:19 PM

> ...in the same directory (and its subdirectories) This means you can access components and their methods that are in subdirectories of the current component, but not necessarily the other way around.  From within the subdirectory, the components that are in the parent folder are not "in the same directory (or its subdirectories)" and are therefore not part of the "package" as defined from that component's "point of view". -Justin Scott


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 22, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference