public function actionCreatePaymentPo($id) { $invoiceItem = new LbInvoiceItem(); $result = $invoiceItem->addBlankItem($id); if ($result) { $response = array(); $response['success'] = YES; $response['invoice_item_id'] = $invoiceItem->lb_record_primary_key; LBApplication::renderPlain($this, array('content' => CJSON::encode($response))); } }