Draft - note this is a draft and subject to change
CFM pages
The glue to pull all the CFC's and Custom tags together.
- All processing happens at top
- All display happens at bottom
- All forms submit to themselves for processing
CFC's
Used for business logic. Not for rendering to screen.
What goes in a CFC
- Anything complex
- Any database access
- Any external calls (webservices etc)
Strong Encapsulation
- Ensure all variables are passed in - i.e. no external or global references
Custom Tags & CFimports
Used for reusable display templates and components
Strong Encapsulation
- Ensure all variables are passed in - i.e. no external or global references
DB naming
- id for primary key
- [tablename]_id for foreign key
- All lower case underscore seperated