2009-08-05

[CakePHP] 檔案 / Class 命名習慣

CamelCased

* The Controller class
KissesAndHugsController
=> kisses_and_hugs_controller.php (notice _controller in the filename)
* The Component class
MyHandyComponent => my_handy.php
* The Model class
OptionValue => option_value.php
* The Behavior class
EspeciallyFunkableBehavior => especially_funkable.php
* The View class
SuperSimpleView => super_simple.ctp
* The Helper class
BestEverHelper => best_ever.php


http://book.cakephp.org/view/23/File-and-Classname-Conventions