has and belongs to many is a kind of associations that can be defined in models for retrieving associated data across different entities.
By calling ajax helper and then using it in controller for rendering.
find, findAll , findAllBy , findBy , findNeighbours , query
model view controller, it is a software architecture, used to isolates business logic from presentation logic. cakephp is based on mvc pattern.
1. The Model represents the application data
2. The View renders a presentation of model data
3. The Controller handles and routes requests made by the client