Fork me on GitHub
Heads up!
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.

Crud Actions

A CrudAction is a class that handles a specific kind of crud action type (index, add, edit, view, delete) in isolation.

Each CrudAction has its own unique configuration and events it uses.

If you don’t like how a specific CrudAction behaves, you can very easily replace it with your own.

Custom Crud Actions


The class names Index, View, Add, Edit and Delete are reserved for CrudComponent

You can’t create your own versions of these CrudActions with the same name.

If you want to change the behavior of Index simply rename it to MyIndex and remap your controller action to the correct CrudAction object using mapAction() in CrudComponent.

comments powered by Disqus