Example #1
0
<?php

$this->renderPartial('../profile/profile/_info', array('profile' => $profile));
$s_id = $cvview[0]['family'];
if ($cvview[0]['gender'] == '0') {
    $status = array('0' => 'холост', '1' => 'женат', '2' => 'есть подруга', '3' => 'в активном поиске');
} else {
    $status = array('0' => 'не замужем', '1' => 'замужем', '2' => 'есть друг', '3' => 'в активном поиске');
}
$l_ids = $cvview[0]['languages'];
$languages = UserCvs::model()->getLanguages($l_ids);
$r_id = $cvview[0]['city_id'];
$region = UserCvs::model()->getRegion($r_id);
?>

<div class="content">
	<table cellpadding="0" cellspacing="0" width="100%" class="avatarAndMenu">
		<tr>
			<td width="200">
                            <?php 
$this->renderPartial('../profile/profile/_avatar', array('profile' => $profile));
?>
			</td>
			<td align="center">
				<div>
					<?php 
$this->renderPartial('../profile/profile/_menu', array('current' => '0', 'id' => $profile->user_id));
?>
				</div>
			</td>
		</tr>
 /**
  * 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 = UserCvs::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }