common/helpers/Functions.php
/**
     * prepared queryString
     * @param string $simbol - first simbol before queryString  & | ?
     * @param array $exclude - name of params of queryString wich were excluded from her
     * @return string - queryString
     */
prepared queryString
@param string $simbol - first simbol before queryString  & | .
@param array $exclude - name of params of queryString wich were excluded from her
@return string - queryString
prepared queryString @param string $simbol - first simbol before queryString & | . @param array $exclude - name of params of queryString wich were excluded from her @return string - queryString
public static function prepareQS($exclude = [], $simbol = '&')
    {
        if (!in_array($simbol, ['&', '?']))
            $simbol = '&';
        $parsms = Yii::$app->request->queryParams;
        foreach ($exclude as $v)
            unset($parsms[$v]);
        if (sizeof($parsms) > 0)
            return $simbol.http_build_query($parsms);
        else
            return "";
    }
public static function prepareQS ( $ exclude = [ ] , $ simbol = '&' ) { if ( ! in_array ( $ simbol , [ '&' , '?' ] ) ) $ simbol = '&' ; $ parsms = Yii :: $ app -> request -> queryParams ; foreach ( $ exclude as $ v ) unset ( $ parsms [ $ v ] ) ; if ( sizeof ( $ parsms ) > 0 ) return $ simbol . http_build_query ( $ parsms ) ; else return " " ; }
prepared queryString
 @param string $simbol - first simbol before queryString  & | ?
prepared queryString @param string $simbol - first simbol before queryString & | ?