-
Notifications
You must be signed in to change notification settings - Fork 140
Helpful Links
Why FW/1? Read the introductory blog post to learn more about the framework.
- Developing Applications Manual
- Reference Manual
- Using Subsystems
- FW/1 Site Showcase
- Roadmap
- Sean Corfield's Blog
- FW/1 Google Group (mailing list)
- Building REST APIs With FW/1 2.2 by Marcin Szczepanski
- Crash Course in MVC With FW/1 by Steven Neiland
- Adding Structure to ColdFusion Applications with FW/1 Introductory FW/1 presentation covering MVC basics, FW/1 views, layouts, controllers, services and dependency injection at a high level by Marcin Szczepanski
- Adding Structure to ColdFusion Applications with FW/1: Beyond the Basics CF.Objective(ANZ) 2012 presentation by Marcin Szczepanski - some overlap with presentation above, but then covers DI, Routes, Sub-Systems and Testing in some more detail. No recording, just slides and code.
- Simple MVC with FW/1 by Daria Norris code
- FW/1 - The Invisible Framework by Sean Corfield (references FW/1 v1.0)
- Hotel Delta's Introduction to Framework One (PDF - references FW/1 v1.x)
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.
- Where to put DSN?
- Bypass framework for certain pages/scheduled tasks
- Getting data/Displaying menus for a specific section/layout
- Another discussion on displaying menus in layout
- AJAX calls and bypassing security check for .cfc extensions
- Tips on making implicit service calls
- More tips on implicit service calls
- Save,validate,redirect use-case
- Explicitly calling services
- Coldspring and FW/1
- Good advice from Sean
- Fusebox to FW/1 transition
- Why do we have implicit service calls
- What is the different between "service" and "model"?
- Supress implicit calls + notes about upcoming v2.0
- Best practices for calling controllers vs controllers&services
- More best practices
- Development settings to prevent caching controllers/services
- Contributing to Github
- controllers/section.cfc:before()
- controllers/section.cfc:startitem()
- controllers/section.cfc:item()
- services/section.cfc:item()
- (any service calls that were added via the service() API call)
- controllers/section.cfc:enditem()
- controllers/section.cfc:after()
- http://groups.google.com/group/framework-one/browse_thread/thread/82a5494411f69d33/f790de14111fe8df#f790de14111fe8df
- http://groups.google.com/group/framework-one/browse_thread/thread/ed26ce70c17cf92f/c1c751bd401b6bd2#c1c751bd401b6bd2
- http://groups.google.com/group/framework-one/browse_thread/thread/82a5494411f69d33/2af895907a887645#2af895907a887645
- http://groups.google.com/group/framework-one/browse_thread/thread/7afa88cd83038f31/abda14f0b8c45713#abda14f0b8c45713
- http://groups.google.com/group/framework-one/browse_thread/thread/2f65388df9ab202e/221a3f5793023fb9
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>
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:
Also see: DI/1 is a very lightweight, convention over configuration, dependency injection (inversion of control) framework for ColdFusion
- 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://objectorientedcoldfusion.org/dependency-injection.html