Model:
- if our model name is Post, CakePHP infers this model will be used in PostsController and
will be tied to database table called posts.
Interacts with the database (so all the values and rows and tables of the database is
found in the model)
Controller: Where you play with the models, camel cased e.g. PostsController.php
we can call anything from the our model e.g. Post, because we’ve followed
CakePHP’s naming conventions
Actions: a single function or interface in an applciation
$this->set('posts', $this->Post->find('all'));
sets the variable called ‘posts’ equal to the return value of the find('all') method
of the Post model
View: Presentation-flavoured fragments that fit inside an applications layout
easy.
Has view helpers that make things like linking, form output, JavaScript and AJAX
Is stored in /app/View inside a folder named after the controller to which they
correspond.