<div class="ex_zal_text"><?php echo $zal->title; ?> </div> </div> <?php } } ?> </div> </div> </div> <div id="ex_dop"> <?php $dops = Cifer::model()->active()->findAll(array('order' => 'position ASC')); if ($dops) { foreach ($dops as $dop) { $src = $dop->getOrigFilePath() . $dop->image; ?> <div class="ex_dop"> <i style="background-image:url('<?php echo $src; ?> ');"></i> <span class="f-alger"><?php echo $dop->number; ?> </span> <span><?php echo $dop->title;
/** * 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 Zal the loaded model * @throws CHttpException */ public function loadModel($id) { $model = Cifer::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }