Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
You must login to ask question.
Components are packages of logic that are shared between controllers. In cakephp there are some predefine components like:- AuthComponent Cookie Cross Site Request Forgery Flash Security Pagination Request Handling or according to our need we also create our own component :)
or simply if we don't want to do code we create a relationship between these two tables in database by doing this if primary key data is deleted then foreign key data automatic deleted :)