You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.
This issue has originally been reported by @Faryshta at yiisoft/yii2#13968.
Moved here by @samdark.
What steps will reproduce the problem?
on config/main.php
What is the expected result?
use the
StoreEmployeeController
controller when accessing the route store/1/employeeWhat do you get instead?
http status 404 the rest rule is not even parsed.
Additional info
caused by line https://github.com/yiisoft/yii2/blob/master/framework/rest/UrlRule.php#L221 since it executes
strpos('store/1/employee', 'store/<store_id:\d+>/employee')
which obviously will return false. there is no work-around this. when removing this line (and the ending bracket) the url is parsed properly.
The text was updated successfully, but these errors were encountered: