Appendix C. Cake Conventions

Table of Contents

C.1. Conventions, eh ?
C.2. Filenames
C.3. Models
C.4. Controllers
C.5. Views
C.6. Helpers
C.7. Components
C.8. Vendors

C.1. Conventions, eh ?

Yes, conventions. According to thefreedictionary:

  • General agreement on or acceptance of certain practices or attitudes: By convention, north is at the top of most maps.

  • A practice or procedure widely observed in a group, especially to facilitate social interaction; a custom: the convention of shaking hands.

  • A widely used and accepted device or technique, as in drama, literature, or painting: the theatrical convention of the aside.

Conventions in cake are what make the magic happen, read it automagic. Needless to say by favorizing convention over configuration, Cake makes your productivity increase to a scary level without any loss to flexibility. Conventions in cake are really simple and intuitive. They were extracted from the best practices good web developers have used throughout the years in the field of web developement.