File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ This experimental plugin provides CRUD (Create/Read/Update/Delete) services to y
1717using [ CakePHP's dependency injection container] ( https://book.cakephp.org/4/en/development/dependency-injection.html ) .
1818
1919- Perform most crud operations with a single line of code.
20+ - Includes a bake theme for quick scaffolding.
2021- Automatically serializes data into JSON, XML, etc.
2122- Automatically enforces allowed requests ` $this-request->allowMethod() `
2223- Crud plays nicely with existing MixerApi plugins, Pagination, CakePHP Search and may be installed on its own too.
@@ -134,6 +135,14 @@ Return a CakePHP Query object instead:
134135$query = $search->query($this);
135136```
136137
138+ ## Bake Theme
139+
140+ Crud comes with its own bake template for scaffolding your controllers, just add ` --theme MixerApi/Crud ` , example:
141+
142+ ``` console
143+ bin/cake bake controller all --theme MixerApi/Crud
144+ ```
145+
137146## Serialization
138147
139148Serialization is handled by a ` Controller.beforeRender ` listener. It serializes the first viewVar found for all CRUD
@@ -196,14 +205,6 @@ $options = [
196205];
197206```
198207
199- ## Bake Theme
200-
201- Crud comes with its own bake template for scaffolding your controllers, just add ` --theme MixerApi/Crud ` , example:
202-
203- ``` console
204- bin/cake bake controller all --theme MixerApi/Crud
205- ```
206-
207208## Misc
208209
209210#### Path Parameters
You can’t perform that action at this time.
0 commit comments