Skip to content
jimpriest edited this page Mar 23, 2013 · 15 revisions

Google Group

Presentations

FW/1 - The Invisible Framework by Sean Corfield (references FW/1 v1.0)

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 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

Options +FollowSymlinks
RewriteEngine On

# exclude files from rewriting
RewriteCond %{REQUEST_FILENAME} !-f
# exclude directories from rewriting
RewriteCond %{REQUEST_FILENAME} !-d
# exclude static files
RewriteCond %{REQUEST_URI} !^.*\.(bmp|css|gif|htc|html?|ico|jpe?g|js|pdf|png|swf|txt|xml)$

# rewrite rules, NS skips rewrite rule for internal sub-requests
# for FW/1, removes index.cfm from the URL
RewriteRule ^(.*)$ /index.cfm/$1 [NS,L]

# sends 404 to the same action as onMissingView
ErrorDocument 404 /index.cfm?action=public:error.notfound 

** 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