www.fusebox.org



Navigation:


FORUMS > Fusebox 5 < refresh >
Topic Title: Invoke and Instantiate in Fusebox 5
Created On Wed July 05, 2006 5:09 PM
Topic View:

View thread in raw text format


derek.brigner
Junior Member

Posts: 5
Joined: Mar 2006

Wed July 05, 2006 5:09 PM
User is offline

I have used Fusebox 4 for the last 3 months now and have decided to try Fusebox 5, but one thing that I can't seem to find much documentation on is how to use CFC's in the new framework. I have seen examples of CFC's being used with Fusebox 4.1 (Brian Kotek's bookstore app), but can't seem to find anything that goes into greater detail or has more examples. I would appreciate it if anyone could enlighten me about the subject. Thanks in advance.
 
Reply
   
Quote
   
Top
   
Bottom
     



brian428
Senior Member

Posts: 1169
Joined: Nov 2002

Wed July 05, 2006 8:09 PM
User is offline View users profile

The documentation available here at Fusebox.org has details on the changes in Fusebox 5:
http://www.fusebox.org/index.cfm?fuseaction=documentation.WhatsNewInFusebox5

-------------------------
Brian Kotek (Brian428) | http://www.briankotek.com/blog

Why 428? 42 is the ultimate answer to life, the universe, and everything. And 8 is infinity sideways.
 
Reply
   
Quote
   
Top
   
Bottom
     



JohnB
Little Cheese

Posts: 563
Joined: Nov 2002

Thu July 06, 2006 3:10 AM
User is offline View users profile

did you get this sorted derek?

-------------------------
Jb.
aka:Hagrid, keeper of the forums

John Beynon
Team Fusebox
|Blog @ john.beynon.org.uk | john@beynon.org.uk
Please remember to mark a thread closed if you're happy with the answer.
 
Reply
   
Quote
   
Top
   
Bottom
     



RAL
Senior Member

Posts: 430
Joined: Jan 2003

Thu July 06, 2006 4:03 AM
User is offline View users profile

Derek, if you haven't found it already, take a look at Sean Corfield's 'Frameworks Comparison' code collection. It contains some very instructive examples for people moving from procedural Fusebox to CFC-based Fusebox. You probably won't be interested in the examples involving Mach-II, Model-Glue, ColdSpring or Tartan, but there will still be at least three Fusebox examples that will be of interest to you.

http://www.corfield.org/articles/frameworks_code.zip

Note that FB 5 is backward comptible with 4.1, so all of these examples, along with any instantiate and invoke statements they contain, will run fine on v5. The same, of course, should apply to all other sample applications which ran on FB4.1.

-------------------------
Roger Lancefield
http://ralpress.org

Edited: Thu July 06, 2006 at 4:05 AM by RAL
 
Reply
   
Quote
   
Top
   
Bottom
     



derek.brigner
Junior Member

Posts: 5
Joined: Mar 2006

Thu July 06, 2006 10:37 AM
User is offline

Thanks for your help guys. I am going through the documentation and examples you gave me right now, so hopefully I will understand it shortly. Thanks again!
 
Reply
   
Quote
   
Top
   
Bottom
     



derek.brigner
Junior Member

Posts: 5
Joined: Mar 2006

Thu July 06, 2006 11:11 AM
User is offline

I have one more quick question. Can fusebox.init.cfm still be used in Fusebox 5 to create application and server scoped CFC's? The file wasn't in the latest release of the skeleton, and I was just wondering if that was because it wasn't needed in that particular application, or if some other method is now used.
 
Reply
   
Quote
   
Top
   
Bottom
     



RAL
Senior Member

Posts: 430
Joined: Jan 2003

Thu July 06, 2006 11:51 AM
User is offline View users profile

fusebox.init.cfm is not included by default (and if it were, if would be an empty template) and if you wish to use it you will need to create it youself. FB 5 still supports this and its purpose is for per-request configuration and settings. For application-scoped CFC initialization, and anything else you wish to run/set during application start-up (and only during application start-up), use the new fusebox.appinit.cfm template. There is an overview of this here:

http://www.fusebox.org/index.cfm?fuseaction=documentation.WhatsNewInFusebox5

You will find plenty of discussion of these templates within the searchable Yahoo Groups Fusebox 5 archives:

http://groups.yahoo.com/group/fusebox5/

(Yahoo membership required).


-------------------------
Roger Lancefield
http://ralpress.org

Edited: Thu July 06, 2006 at 11:53 AM by RAL
 
Reply
   
Quote
   
Top
   
Bottom
     



JohnB
Little Cheese

Posts: 563
Joined: Nov 2002

Thu July 06, 2006 4:16 PM
User is offline View users profile

fusebox.appinit.cfm/fusebox.init.cfm are being added to the general release of fb5 - with text in them explaining what they are for.

-------------------------
Jb.
aka:Hagrid, keeper of the forums

John Beynon
Team Fusebox
|Blog @ john.beynon.org.uk | john@beynon.org.uk
Please remember to mark a thread closed if you're happy with the answer.
 
Reply
   
Quote
   
Top
   
Bottom
     



derek.brigner
Junior Member

Posts: 5
Joined: Mar 2006

Thu July 06, 2006 8:47 PM
User is offline

Thanks again guys, you have been very helpful.
 
Reply
   
Quote
   
Top
   
Bottom
     



seancorfield
Senior Member

Posts: 1751
Joined: Feb 2003

Fri July 07, 2006 2:20 PM
User is offline View users profile

Quote

Originally posted by: RAL
You will find plenty of discussion of these templates within the searchable Yahoo Groups Fusebox 5 archives:

http://groups.yahoo.com/group/fusebox5/

(Yahoo membership required).

Yahoo! membership is required to post but the archives are publicly browsable now and there is an RSS feed available: http://rss.groups.yahoo.com/group/fusebox5/rss



-------------------------
Sean A Corfield -- http://corfield.org/
AIM/Skype: seancorfield

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
 
Reply
   
Quote
   
Top
   
Bottom
     

View thread in raw text format
FORUMS > Fusebox 5 < refresh >

Navigation:

FuseTalk 4.0 © 1999-2003 FuseTalk Inc.