You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }