Example #1
0
 public function changepasswdAction()
 {
     $this->getResponse()->setHeader('Content-Type', 'application/json');
     $this->_helper->viewRenderer->setNoRender(true);
     $this->_helper->layout()->disableLayout();
     $account = $this->_getParam('account');
     $passwd = $this->_getParam('passwd');
     $status = Application_Model_M_Admin::changePasswdByAccount($account, $passwd);
     if ($status) {
         $out['errno'] = '0';
     } else {
         $out['errno'] = '1';
     }
     Yy_Utils::jsonOut($out);
 }
Example #2
0
 public function delete()
 {
     $where = 'id=' . $this->getId();
     return Application_Model_M_Admin::delete($where);
 }