Example #1
0
 /**
  * Load the list of graph for a view
  *
  * @route /view/[i:id]
  * @method GET
  */
 public function getListGraphAction()
 {
     $router = Di::getDefault()->get('router');
     $viewId = $router->request()->param('id');
     $router->response()->json(array('graphs' => GraphView::getListGraph($viewId)));
 }