Ejemplo n.º 1
0
 public function unlockAction()
 {
     $request = $this->_request;
     $model = new Application_Model_Clientes();
     if ($request->isPost()) {
         $data = $request->getPost();
         if (isset($data['locked_by']) == CURRENT_USER_ID) {
             $model->lockRow($data['id'], 0, 0);
         }
     }
     $this->redirect('/clientes/index');
 }