Ejemplo n.º 1
0
 public function indexAction()
 {
     $userService = new UserService();
     $users = $userService->GetUsers($this->options);
     $data = json_encode($users);
     return $data;
     die;
     echo "<pre>";
     print_r($data);
     echo "</pre>";
     /** API */
     $users = json_decode($data);
     echo "<pre>";
     print_r($users);
     echo "</pre>";
     $this->content = View::RenderView($this->router, array('users' => $users));
     return $this->content;
 }