Exemplo n.º 1
0
 public function findallAction()
 {
     $user = new Backoffice_Model_User();
     $users = $user->findAll();
     $data = array("users" => array());
     foreach ($users as $user) {
         $data["users"][] = array("id" => $user->getId(), "email" => $user->getEmail(), "created_at" => $user->getFormattedCreatedAt($this->_("MM/dd/yyyy")));
     }
     $this->_sendHtml($data);
 }