</td> </tr> <tr> <td>Due Date</td> <td></td> <td><?php echo $posts->due_date; ?> </td> </tr> </table> <?php echo CHtml::link('Add Particular', array('feeCollectionParticulars/create', 'id' => $_REQUEST['id'])); ?> <?php $collection = feeCollectionParticulars::model()->findAll("\tfinance_fee_collection_id =:x", array(':x' => $_REQUEST['id'])); if (count($collection) != 0) { ?> <div class="tablebx"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr class="tablebx_topbg"> <td>Sl no.</td> <td>Particulars</td> <td>Student Category</td> <td>Admission no</td> <td>Amount ($)</td> <td>Created Date</td> </tr> <?php $i = 1;
public function actionAjax_Create() { if (isset($_POST['feeCollectionParticulars'])) { $model = new feeCollectionParticulars(); //set the submitted values $model->attributes = $_POST['feeCollectionParticulars']; //return the JSON result to provide feedback. if ($model->save(false)) { echo json_encode(array('success' => true, 'id' => $model->primaryKey)); exit; } else { echo json_encode(array('success' => false)); exit; } } }