- <?php
-
-
-
- namespace producer\components ;
-
- class UrlManagerProducer extends \common\components\UrlManagerCommon {
-
- public function createUrl($params) {
- if(!is_array($params))
- $params = [$params] ;
-
- if(!isset($params['slug_producer']))
- $params['slug_producer'] = Yii::$app->getRequest()->getQueryParam('slug_producer') ;
-
- return parent::createUrl($params) ;
- }
-
- }
|