Esempio n. 1
0
 public function loadModel($id)
 {
     $model = PayrollSalary::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }