0

Now I have urlManager like this:

'art/list' => 'ask/index',
'art/list/sort/<sort:\w+>/' => 'ask/index',
'art/list/sort/<sort:\w+>/type/<type>' => 'ask/index',

And have link:

/art/list/sort/new/type/pro+local+buisnes+tourist
How can I configuration urlManager for more parameters without so many declaring it in urlManager(For example if I have 10 or 20 params)?

2
  • What about getting a single type variable and processing it later? i.e. explode("+", $type) Commented Jul 6, 2017 at 8:06
  • @gmc But if i want have link like this /art/list/sort/new/type/pro+local+buisnes+tourist/country/canada/city/toronto/something/param Commented Jul 7, 2017 at 12:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.