Fusebox 5 vs ModelGlue - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

Fusebox 5 vs ModelGlue

Description:

Early adopter of CFCs. Lead for Vurv HR-XML API. What is covered in this Presentation. How to build web apps in Fusebox and Model-Glue. Basic XML syntax. Basic MVC ... – PowerPoint PPT presentation

Number of Views:120
Avg rating:3.0/5.0
Slides: 22
Provided by: david379
Category:

less

Transcript and Presenter's Notes

Title: Fusebox 5 vs ModelGlue


1
Fusebox 5 vs Model-Glue
  • JaxFusion September 2006

2
About the Presenter
  • David Fekke
  • Developing Fusebox since 1.0
  • New to Model-Glue
  • Early adopter of CFCs
  • Lead for Vurv HR-XML API

3
What is covered in this Presentation
  • How to build web apps in Fusebox and Model-Glue
  • Basic XML syntax
  • Basic MVC

4
What is not covered in this Presentation
  • Unity, i.e. Reactor or ColdSpring
  • Fusedocs

5
(No Transcript)
6
Why use a Framework
  • 80 percent of development is maintenance
  • Encourages the use of MVC design pattern
  • Reduces the need spaghetti code
  • Makes your code more reusable

7
MySpace
8
Fusebox History
  • Just a methodology
  • Custom Tags
  • Version 3 added framework
  • Version 4 uses XML config
  • Version 5 rewritten with CFCs

9
Fusebox Basics
  • Fusebox is based on a simple switch mechanism,
    hence the name Fusebox
  • Code files are referred to as Fuses
  • Most fuse files have very little code
  • Documentation called Fusedocs

10
Fusebox components
  • Fusebox.xml
  • Circuit.xml
  • Core files in fusebox5 folder
  • All requests through Index.cfm
  • App divided into circuit folder
  • Plugin directory

11
Fusebox.xml syntax
  • ltcicuitsgt
  • ltclassesgt
  • ltparametersgt
  • ltglobalfuseactionsgt
  • Appinit, preprocess, postprocess

12
Fusebox.xml plugin syntax
  • ltPluginsgt
  • ltphase namepreProcessgt
  • ltphase namepreFuseactiongt
  • ltphase namepostFuseactiongt
  • ltphase namefuseactionExceptiongt
  • ltphase namepostProcessgt
  • ltphase nameprocessErrorgt

13
Circuit.xml syntax
  • ltfuseaction namefuseactionnamegt
  • ltxfa namesave valueapp.save /gt
  • ltinclude templatefile.cfm /gt
  • ltdo actionm.saveCat/gt
  • ltset nameid value1 /gt
  • ltif conditiongt
  • ltinstantiate/gt ltinvoke /gt

14
Lexicons
  • Add your own verbs
  • Lexicon folders

15
Code Examples
16
Model-Glue Framework
  • Developed by Joe Rinehart of BAH
  • Also uses XML config file
  • Meant for more OO styled programming
  • MG-Unity is adding support Reactor, and ColdSpring

17
Model-Glue structure
  • All requests through Index.cfm
  • Config directory
  • Model-Glue.xml
  • Controller CFCs
  • ModelGlue folder in web root

18
Model-Glue config syntax
  • Controller, message-listener
  • event-handler
  • Broadcasts, message
  • Views, include
  • Results

19
Code Examples
20
Other Frameworks
  • Mach-II
  • OnTap based on Tapestry
  • CF on Wheels
  • Ruby on Rails
  • Django for Python
  • Cairngorm Flex
  • Struts, JSF and many others

21
Links
  • www.model-glue.com
  • www.fusebox.org
  • corfield.org
  • www.techspedition.com
  • www.halhelms.com
  • www.briankotek.com/blog/
  • clearsoftware.net
Write a Comment
User Comments (0)
About PowerShow.com