I don't know if these requests were directed at/to me or Sir Corfield.

Since he is our resident expert, I would defer you to his explanation of
when to use <class> and the why's and wherefore's.  

Also Sean's code for the BlogCFC is probably a better example.

 

Even so, I'll do as I promised and display my code.  

I tried posting my code but it exceeds the posting limit here so I'll break
it up into 2 parts.

 

----------fusebox.xml.cfm---------------

<!-- Somewhere inbetween the <circuit></circuit> chunk and the
<parameters></parameters> chunks -->

<!-- Here I am basically laying out all the components I will be using in my
app.  

Also you can see here that I have a Folder under the wwwroot named Ali,
where I place all my FB apps.  Underneath that I have the application
folder.  Then within each application folder I have a com folder where all
the components go.  Ideally I should further separate the components into
subfolders, but that's beyond the scope of this example. --> <classes>

            <class alias="States" 

                     classpath="Ali.GAfb4CFC.com.statesManager" 

                     type="component" 

                     constructor="init" />

            <class alias="Customers" 

                     classpath="Ali.GAfb4CFC.com.dmsManager" 

                     type="component" 

                     constructor="init" />

            <class alias="VIN" 

                     classpath="Ali.GAfb4CFC.com.vinManager" 

                     type="component" 

                     constructor="init" />

            <class alias="Dealer" 

                     classpath="Ali.GAfb4CFC.com.dealerManager" 

                     type="component" 

                     constructor="init" />         

            <class alias="Rating" 

                     classpath="Ali.GAfb4CFC.com.ratingsManager" 

                     type="component" 

                     constructor="init" />      

            <class alias="Policy" 

                     classpath="Ali.GAfb4CFC.com.policyManager" 

                     type="component" 

                     constructor="init" />      

            <class alias="PolicyNumber" 

                     classpath="Ali.GAfb4CFC.com.policyNumberManager" 

                     type="component" 

                     constructor="init" />

      </classes>

 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase Flash MX Pro from House of Fusion, a Macromedia Authorized Affiliate 
and support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=57

Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6703
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to