redirect(['site/index', 'error_products_points_sale' => 1]); } } public function getProducerCurrent(): Producer { return Producer::searchOne(); } } ?>