Skip to content
seancorfield edited this page Jun 22, 2011 · 15 revisions

FW/1 - The Invisible Framework presentation presented by Sean Corfield on the Online ColdFusion Meetup (references FW/1 v1.0)

FW/1 Google Groups

Some Interesting discussions on Google Groups

(Please note that some of the older discussions may refer to doController which was not officially supported and later changed to Controller. There may be additional changes made in newer versions so always refer to the Reference Manual when in doubt - these posts are just to help you get an idea on what direction to go)

As a reminder here is the full list of methods called automatically when FW/1 is asked for section.item:

  1. controllers/section.cfc:before()
  2. controllers/section.cfc:startitem()
  3. controllers/section.cfc:item()
  4. services/section.cfc:item()
  5. (any additional service calls that were added via the service() API call)
  6. controllers/section.cfc:enditem()
  7. controllers/section.cfc:after()

URL Rewrites

Apache/ISAPI Rewrite Rules for SES URLs without the index.cfm

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/(assets|cfide|files|images|js|css|views|layouts|index.cfm) [NC]
RewriteRule ^(.*)$ /index.cfm/$1 

** Resin (Railo Express) conf for SES URLs without the index.cfm** rein.conf

<host>
...
 <rewrite-dispatch>
<!-- http://caucho.com/resin-3.1/doc/rewrite-tags.xtp -->
<dispatch regexp="\.(jsp|cfm|cfc|php|gif|css|jpg|png)" />
<dispatch regexp="^/railo-context/" />
<forward regexp="^/(.*)" target="/index.cfm/$1" />
 </rewrite-dispatch> 

For those interesting in learning more about Object Factories

Here are some great ColdSpring resources to get you thinking about bean factories, when you're ready, compliments of Brian Rinaldi, Brian Kotek and Kevan Stannard:

http://www.remotesynthesis.com/post.cfm/a-beginner-s-guide-to-the-coldspring-framework-for-coldfusion

http://coldspringframework.org/coldspring/examples/quickstart/

http://www.theserverside.com/news/1363647/Using-The-ColdSpring-Dependency-Injection-Framework-for-ColdFusion

http://www.objectorientedcoldfusion.org/wiki/Dependency_Injection

or wait for DI/1

Clone this wiki locally