Table of Contents

Table of Contents

Bye, Bye Wiki

With the opening of The Bakery, it is time to say thank you and good bye to this fine wiki that has helped out for so long. The Bakery allows us to organize content a bit easier. Please, help us move the content from this wiki over to the Bakery. Many of the tutorials and code samples here could use some updating. Read the about article submission and review. Thanks for the help.
PS. on October 15, 2006 the wiki will no longer be available.

Resources

Cake Conventions

*tables names are plural and lowercased

*model names singular and CamelCased: ModelName

*model filenames are singular and underscored: model_name.php

*controller names are plural and CamelCased with *Controller* appended: ControllerNamesController

*controller filenames are plural and underscored with *controller* appended: controller_names_controller.php

*associations should use the ModelName, and the order should match the order of the foreignKeys: var $belongsTo = ‘User’;

*foreign keys should always be: table_name_in_singular_form_id: user_id (foreign key) → users (table)

*many-to-many join tables should be named: alphabetically_first_table_plural_alphabetically_second_table_plural ie: tags_users

*columns in many-to-many join tables should be named like other foreign keys ie: tag_id and user_id

*columns named created and modified will automatically be populated correctly

*components should be CamelCased: MyComponent : my_component.php : var $components = array(’MyComponent’); $this→MyComponent→method();

*helpers should be CamelCased: MyHelper: my_helper.php: var $helpers = array(’MyHelper’); $myHelper→method();

Regarding this wiki

Well, its not the easiest wiki, but it handles code really well. You can look at the Recent Changes or to see what pages are available click “Index” button. We are working on a better navigation solution.

to add a tutorial: http://wiki.cakephp.org/tutorials:Your_Tutorial

to add to Docs: http://wiki.cakephp.org/docs:Your_Doc

to add a standalone page: http://wiki.cakephp.org/Your_Page

to learn more about using this wiki read the syntax

 
start.txt · Last modified: 2006/09/29 14:58 by gwoo