Delete function doesnt work in cakephp -


i working in project left other person me.

the database of project has been moved 1 location another. moving database done owner. caused 1 function stop working "delete" function records.

for development enviroment moved database locally, works. make me believe there wrong sending delete request server.

the code looks this:

    if ($this->removedduty->save($duty['duty'])) {         if ($this->duty->delete($duty_id)) {             $this->session->setflash('this duty removed', 'default', array('class' => 'message success'));             return true;         } else {             $this->session->setflash('this duty not removed.', 'default', array('class' => 'message error'));             return false;         }     } else {         $this->session->setflash('there wrong backing data', 'default', array('class' => 'message error'));         return false;     } } 

how can go troubleshooting problem?

have checked, whether database user has got privilege delete records new server.


Comments

Popular posts from this blog

Combining PHP Registration and Login into one class with multiple functions in one PHP file -

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -