Google News
logo
CakePHP - Interview Questions
Explain hooks in CakePHP?
Hooks in CakePHP are callback functions that can be called before or after a database-related operation like accessing, modifying, deleting, or saving the data in the database. This method is used to do logic just before or after database operation.
 
Some other hooks are afterFind(), beforeValidate(), afterValidate(), beforeSave(), afterSave(), beforeDelete(), afterDelete(), and onError().
Advertisement