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.

UrlManagerProducer.php 442B

пре 6 година
1234567891011121314151617
  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. }