Skip to content

Commit 52dcfb2

Browse files
authored
note bake theme
1 parent 23ce302 commit 52dcfb2

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

plugins/crud/README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ This experimental plugin provides CRUD (Create/Read/Update/Delete) services to y
1717
using [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

139148
Serialization 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

0 commit comments

Comments
 (0)