function getParentaccountAction() { if ($this->getRequest()->isPost()) { $data = $this->getRequest()->getPost(); $db = new Accounting_Model_DbTable_DbChartaccount(); $acc_names = $db->getAllParentAccountByid($data['account_type']); print_r(Zend_Json::encode($acc_names)); exit; } }