/** * Finds the Direction model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param integer $id * @return Direction the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { if (($model = Direction::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }
echo $model->userdata1->pasport; ?> </b></p> </td> </tr> </table> <p> </p> </td> </tr> <tr> <?php $model1 = Direction::findOne($model->idotpr); ?> <td width="836" height="220" colspan="2"> <table cellpadding="0" cellspacing="0" height="181"> <tr> <td width="410" height="50" valign="top">М.П.</td> <td width="410" height="50" valign="top">Керiвник</td> </tr> <tr> <td width="410" height="175"> <table border="0" cellpadding="0" cellspacing="0">