Commit a9c213b11dc36cfab9e63d90b71dfc90a04d4479
1 parent
263b62cc
test
Showing
1 changed file
with
1 additions
and
4 deletions
Show diff stats
app/library/App/Controllers/ProjectController.php
| @@ -26,11 +26,8 @@ class ProjectController extends CrudResourceController { | @@ -26,11 +26,8 @@ class ProjectController extends CrudResourceController { | ||
| 26 | public function test_get($id) | 26 | public function test_get($id) |
| 27 | { | 27 | { |
| 28 | 28 | ||
| 29 | - | ||
| 30 | - | ||
| 31 | $item = $this->getFindData($id); | 29 | $item = $this->getFindData($id); |
| 32 | 30 | ||
| 33 | - return 'breakpoint'; | ||
| 34 | if (!$item) { | 31 | if (!$item) { |
| 35 | return $this->onItemNotFound($id); | 32 | return $this->onItemNotFound($id); |
| 36 | } | 33 | } |
| @@ -41,7 +38,7 @@ class ProjectController extends CrudResourceController { | @@ -41,7 +38,7 @@ class ProjectController extends CrudResourceController { | ||
| 41 | 38 | ||
| 42 | $response = $this->getFindResponse($item); | 39 | $response = $this->getFindResponse($item); |
| 43 | 40 | ||
| 44 | - return '123'; | 41 | + return $response; |
| 45 | } | 42 | } |
| 46 | 43 | ||
| 47 | protected function getModelPrimaryKey() | 44 | protected function getModelPrimaryKey() |