$myConverter = new NumbWordter(); //initialize $text = $myConverter->convert($amount); //pass the number you want to convert echo $text; //will print the words ?> Only</span></div> </div> <div class="rcp_info"> <span class="payment">The above payments are : </span> </div> <div class="rcp_info"> <span class="payment"> <?php $term = FeesTermsAndCondition::model()->findAll(); foreach ($term as $t) { echo '<li>'; echo $t->term; echo '</br>'; } ?> </span> </div> <div class="deposite">N.B. Deposit will be refunded after completion of the course on production of original receipt.</div> <div class="right-corner"> <div class="ins_eng">AUTHORISED SIGNATORY</div> <div class="outer-div"><div class="rcpt_amt_tic"> </div></div> <div class="sign"></div> </div>
/** * 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 = FeesTermsAndCondition::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }