These docs are for Crud v3 - that only works with CakePHP 2.x. For CRUD v4 docs please go to the new documentation site
The CRUD v4 documentation has been completely rewritten, and since CRUD v3 and CRUD v4 API is ~95% identical, it may be worth a look for CRUD v3 users as well until v4 docs are backported for v3.
This is a list of events emitted from the CrudAction
In addition to the subject properties listed below, there is also a long list of objects
that are always available in all events.
Please see the events documentation for a full list of subject properties and how to use the event system correctly.
Called after the Controller::beforeFilter() and before the Crud action
Triggered when a CrudAction is going to handle a CakePHP.
findMethod maps to the 1st argument of Model::find(). The default value is all.
query maps to the 2nd argument of Model::find(). e.g. fields, conditions, contain etc.
id is the ID that was originally passed to the action and are usually the primary key of your model.
item is the record that was found in the database.
If beforeFind could not find a record this event is emitted
Invoked right before the view will be rendered.
This is also before the controllers own beforeRender callback
This is the configuration options for the Crud action class