Table Relationships

When working with CakePHP it is important to remember "Convention over Configuration." If you start from the bottom, or back end, the database, and work your way forward correctly, CakePHP will do much of legwork for you, saving you tons of redundant and repetitive work.

If you don't, there are almost always ways to make things work the hard way. An example of this is the relationships between tables. If you name your database tables and fields following CakePHP convention, it becomes trivial to set up relationships between them.

Elements

Elements are reusable blocks of code you can create once and use in multiple Views of your site, making it easier to make changes in a single location instead of searching for all the occurrences of the same code.

For ease of access I create a common login/logout block to display on all the pages of my applications.