app->render('bucket', [ 'id' => $id ]); } public function indexAction($bucketId) { $noteStore = new Note(); $notes = $noteStore->findBy(); $this->app->json([ 'data' => $notes, 'page' => $page ]); } public function createAction($bucketId) { $result = [ 'success' => false ]; $noteStore = new Note(); $this->app->json([ 'data' => $notes, ]); } }