コード例 #1
0
ファイル: User.php プロジェクト: agustincl/zgz2015_m
 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));
 }
コード例 #2
0
ファイル: User.php プロジェクト: ismaelmelus/home
 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));
 }