function addfacultyAction() { if ($this->getRequest()->isPost()) { $data = $this->getRequest()->getPost(); $db = new Application_Model_DbTable_DbDept(); $faculty_id = $db->AddNewFaculty($data); print_r(Zend_Json::encode($faculty_id)); exit; } }