Commit a6aec7199c63e9a52ff4269e1a2c221b29fdbb0e
1 parent
3c9a7a92
registration
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/library/App/Controllers/UserController.php
... | ... | @@ -2,6 +2,7 @@ |
2 | 2 | |
3 | 3 | namespace App\Controllers; |
4 | 4 | |
5 | +use App\Model\User; | |
5 | 6 | use PhalconRest\Mvc\Controllers\CrudResourceController; |
6 | 7 | |
7 | 8 | class UserController extends CrudResourceController |
... | ... | @@ -51,7 +52,8 @@ class UserController extends CrudResourceController |
51 | 52 | |
52 | 53 | $data = $this->transformPostData($data); |
53 | 54 | |
54 | - $item = $this->createModelInstance(); | |
55 | + //$item = $this->createModelInstance(); | |
56 | + $item = new User(); | |
55 | 57 | |
56 | 58 | die(var_dump($item)); |
57 | 59 | ... | ... |