protected function findModelKendaraan($id) { if (($model = LgKendaraan::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }