?> </div> <div class="clear"></div> </div> <!-- footer --> <div id="footerbg"> <div id="footerblank"> <div id="footerbox"> <div id="footerbox2"> <div class="footerheading"> <h4 class="footerheading">Giới thiệu</h4> </div> <div class="footertxt"> <?php $intros = Introduces::model()->findAll(); // die(var_dump($categorys)); foreach ($intros as $key => $value) { echo '<li>'; echo CHtml::link($value->introducecol, array('introduces/view', 'id' => $value->id)); echo '</li>'; } ?> <!-- <a href="#" class="textmndichvu">Lời ngỏ</a><br> <a href="#" class="textmndichvu">Giới thiệu chung công ty</a><br> <a href="#" class="textmndichvu">Năng lực công ty</a><br> --> </div> </div> <div id="footerbox2"> <div class="footerheading">
/** * 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 $id the ID of the model to be loaded * @return Introduces the loaded model * @throws CHttpException */ public function loadModel($id) { $model = Introduces::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }