public function indexAction() { $options = new Options(); $options = $this->getOptions($options); $userService = new UserService(); $users = $userService->getUsers($options); $this->content = View::RenderView($this->router, array('rows' => $users)); }
public function indexAction() { $options = new Options(); $options = $this->getOptions($options); $userService = new UserService(); $users = $userService->getUsers($options); // echo "<pre>"; header("Content-Type: application/json"); print_r(json_encode($users)); // echo "</pre>"; die; $this->content = View::RenderView($this->router, array('rows' => $users)); }