CakePhp Association With Example

CakePhp Association Example CakePhp provides a very powerfull mechanism to handle relation between models ( i.e foreign key relationship between database tables ) by itself with the call of just one function. The four association types in CakePHP are: hasOne, hasMany, belongsTo, and hasAndBelongsToMany (HABTM). Here I am giving expamle for hasOne association in CakePhp. There will…

Read More