[CakePHP] model and database convention

model and db convention in CakePHP
[qui ước tên model và database trong CakePHP]

////////////////////////////////////////////////////////////
Conventions
////////////////////////////////////////////////////////////
Model classnames are singular and CamelCased
Table names corresponding to CakePHP model are plural and underscored

////////////////////////////////////////////////////////////
Examples
////////////////////////////////////////////////////////////
Model classname: Person, Bigperson

respectively, we have table names:
+ people
+ big_people

---
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...