[CakePHP] file name convention

file name convention will summarize convention of filename in CakePHP
[qui ước tên file trong cakephp]

////////////////////////////////////////////////////////////
Conventions
////////////////////////////////////////////////////////////
filenames are underscored
classnames are CamelCased

////////////////////////////////////////////////////////////
Examples
////////////////////////////////////////////////////////////
classname: MyNiftyClass
filename : my_nifty_class.php

++++ Examples for the Controller ++++
classname: KissesAndHugsController
filename: kisses_and_hugs_controller.php

++++ Examples for the Component ++++
classname: MyHandyComponent
filename: my_handy.php

++++ Examples for the Behavior ++++
classname: EspeciallyFunkableBehavior
filename: especially_funkable.php

++++ Examples for the View ++++
classname: SuperSimpleView
filename: super_simple.php

++++ Examples for the Helper ++++
classname: BestEverHelper
filename: best_ever.php

---
name: hoang nguyen
nickname: mathhoang
Y!M: vietnam_hoangminhnguyen@yahoo.com
mail: vietnam_hoangminhnguyen@Yahoo.com
site: http://kattyflea.co.cc
or: http://tech-vnit.tk
---

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...