M
M
ms23452016-01-06 14:38:02
Yii
ms2345, 2016-01-06 14:38:02

Which one to get data from url in yii 2?

Good day.
If I have an address of the form: site.ru/posts/best/week
What are the ways in yii2 to extract a specific value from a given address?
That is, for example, an array - path([0] => "posts", [1] => "best", [2] => "week")
Thank you for your attention!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sunrails, 2016-01-06
@sunrails

www.yiiframework.com/doc-2.0/guide-runtime-routing.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question