Testing how to develop an app
This commit is contained in:
@ -28,4 +28,11 @@ class PageController extends Controller {
|
||||
return new TemplateResponse('mywiki', 'index'); // templates/index.php
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
*/
|
||||
public function test() {
|
||||
return new DataResponse('JDG::Test');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -23,9 +23,15 @@
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
*/
|
||||
public function index() {
|
||||
return new DataResponse($this->service->test($this->userId));
|
||||
public function test() {
|
||||
$x = $this->service->test($this->userId);
|
||||
return new DataResponse(print_r($x,true));
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
*/
|
||||
public function index() {
|
||||
return new DataResponse($this->service->findAll($this->userId));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user