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.
|
- <?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) ;
- }
-
- }
|