-
Notifications
You must be signed in to change notification settings - Fork 140
Helpful Links
FW/1 - The Invisible Framework by Sean Corfield (references FW/1 v1.0)
- Crash Course in MVC With FW/1 by Steven Neiland
- Hotel Delta's Introduction to Framework One (PDF - references FW/1 v1.x)
- Adding Structure to Coldufsion 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.
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)
- 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
As a reminder here is the full list of methods called automatically when FW/1 is asked for section.item:
- 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()
URL Rewrites
- 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
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://coldspringframework.org/coldspring/examples/quickstart/
http://www.objectorientedcoldfusion.org/wiki/Dependency_Injection
or wait for DI/1