public function actionCreateBlankTax($id, $type) { $vendorIax = new LbVendorTax(); $result = $vendorIax->addLineTaxVendor($id, $type); if ($result) { $response = array(); $response['success'] = YES; $response['invoice_item_id'] = $vendorIax->lb_record_primary_key; LBApplication::renderPlain($this, array('content' => CJSON::encode($response))); } }