I am relatively new to PHP. Started to learn PHP, but then came across cakePHP, which is supposed to speed up development time.
After reading the documentation and the blog tutorial, I still don't understand the naming convention. I think I wonβt know until I start doing some examples, but to start me, someone, please explain to me how cakePHP links database tables to the controller / model level?
The code below is an abstract from the tutorial. This is a controller method that passes the message identifier to the presentation layer. The database table is called "messaging." $ this-> Post refers to the Post model class that correlates with the plural form of messages in the database.
public function view($id = null) {
$this->Post->id = $id;
$this->set('post', $this->Post->read());
}
OK, I get it. Then in the documentation, this refers to the following correlation:
ReallyBigPerson and really_big_people
So, it seems that correlation really follows the rule in English semantics. Does this mean cakePHP has a list of single and multiple words hidden somewhere from which it works? For example, is it possible to use the following correlation without breaking the code?
This and these or Man and men or Feet and legs or Elk and moose or Goose and geese
Also, if I have both a singular and a plural form of tables in my database, will it break the code or will it just be associated with a multiple-expression table?
, ... , , ?