Commit 2c27a20b7295e1465011c0c06afddda1888bce03
1 parent
e611d3a3
registration
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
app/library/App/Controllers/UserController.php
... | ... | @@ -57,9 +57,11 @@ class UserController extends CrudResourceController |
57 | 57 | $data = $this->transformPostData($data); |
58 | 58 | |
59 | 59 | $item = $this->createModelInstance(); |
60 | - | |
61 | - $item->save(); | |
62 | - die($item->id); | |
60 | + $user = new User(); | |
61 | + $user->username = 'test'; | |
62 | + $user->save(); | |
63 | + echo $user->id; | |
64 | + die(); | |
63 | 65 | |
64 | 66 | |
65 | 67 | $newItem = $this->createItem($item, $data); | ... | ... |