Home > CakePHP > CakePHPのコーディング規約

CakePHPのコーディング規約

この記事の所要時間: 113

CakePHPにもコーディング規約があります。

Cake Developers will use the following coding standards.
It is recommended that others developing CakeIngredients follow the same standards.

Developement/CodingStandards – CakePHP : Rapid Development Framework – Trac (2006-10-12)

PHP.PL DevTeamのコーディング規約が元になっているようです。内容をざっと見た感じではZend Frameworkのコーディング規約に似ていますね。

まあフレームワーク自体が規約に従っていないのはアレですが。

We agreed on using four space characters for indentation.

Developement/CodingStandards – CakePHP : Rapid Development Framework – Trac (2006-10-12)

規約ではインデントは4スペースになってますが、[cake/libs/model/model.php]等々を見るとインデントはtabになってたり。。

Pocket

follow us in feedly

コメント (Close):1

Chiether 10-07-16 (金) 19:01

https://trac.cakephp.org/wiki/Developement/CodingStandards

Indentation ¶
One tab will be used for indentation.

今は、1tabになっています。 途中で変わったのかな?

トラックバック:0

このエントリーのトラックバックURL
/blog/2006/10/cakephp_code_standard.html/trackback
Listed below are links to weblogs that reference
CakePHPのコーディング規約 from Shin x blog

Home > CakePHP > CakePHPのコーディング規約

検索
フィード
メタ情報

Return to page top