/**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = MiscellaneousFeesReceipt::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
$org_data = Organization::model()->findByPk(Yii::app()->user->getState('org_id'));
echo $org_data->organization_name . "</br>";
echo $org_data->address_line1 . " ";
echo $org_data->address_line2 . "</br>";
echo City::model()->findBypk(Organization::model()->findByPk(Yii::app()->user->getState('org_id'))->city)->city_name . ", " . State::model()->findBypk(Organization::model()->findByPk(Yii::app()->user->getState('org_id'))->state)->state_name . ", " . Country::model()->findBypk(Organization::model()->findByPk(Yii::app()->user->getState('org_id'))->country)->name . ".";
?>
   
    		   </div>
 		</div>
  
	<div class="rcpt_content">
		<div class="id_date">
			<div class="rcpt_no">
			    <span class="style2 rcpt_title">Receipt No.</span>
			    <span class="rcpt_id"><?php 
echo MiscellaneousFeesReceipt::model()->findByPk($misc_fees_payment->miscellaneous_fees_payment_cash_receipt_id)->miscellaneous_fees_receipt_number;
?>
</span>
      			</div>	
			<div class="rcpt_date">
			    <span class="style2 rcpt_title">Date:</span>
			    <span class="rcpt_dt"><?php 
echo date_format(new DateTime($misc_fees_payment->miscellaneous_fees_payment_cash_creation_date), "d-m-Y");
?>
</span>
	  		</div>
		</div>
		<div class="rcpt_name">
		  <span class="rcpt_title">Received with thanks from Mr./Mrs./Ms.</span>  
		  <span class="rcpt_s_name"><?php 
echo $stud_model->student_first_name . ' ' . $stud_model->student_middle_name . ' ' . $stud_model->student_last_name;