* @return Manufacturer the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($serviceAlias) { if (($model = Service::find()->where(['alias' => $serviceAlias])->one()) !== null) { return $model; } throw new NotFoundHttpException('The requested page does not exist.'); } }
$_GET = [ 'serviceAlias' => 'pecat-na-sarah', ];