17 lines
442B

  1. <?php
  2. namespace producer\components ;
  3. class UrlManagerProducer extends \common\components\UrlManagerCommon {
  4. public function createUrl($params) {
  5. if(!is_array($params))
  6. $params = [$params] ;
  7. if(!isset($params['slug_producer']))
  8. $params['slug_producer'] = Yii::$app->getRequest()->getQueryParam('slug_producer') ;
  9. return parent::createUrl($params) ;
  10. }
  11. }