S
S
Sergey Melnikov2015-10-23 11:23:24
Yii
Sergey Melnikov, 2015-10-23 11:23:24

Why doesn't url rules fully process the rule?

Greetings. I'm learning yii2
Tell me, I made a simple url rule:
'about' => 'site/about'
When accessing the url test.com/about, everything works, why does the url test.com/site/about also work?
In theory, the rule should be a ban on the use of controller / action, tk. there are no other rules. Should I get a 404 error, or what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-10-23
@azazel_live

Have a look at enableStrictParsing .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question