Browse Source

Update UrlManager.php (#17102)

change >>'POST <controller:[\w-]+>s' => '<controller>/create'<< to >>'POST <controller:[\w-]+>' => '<controller>/create'<<
In POST we don't have 's' so  '<controller>/create but not '<controller>s/create
tags/2.0.16.1
pdynarowski 6 years ago committed by Alexander Makarov
parent
commit
c776cf6240
  1. 2
      framework/web/UrlManager.php

2
framework/web/UrlManager.php

@ -89,7 +89,7 @@ class UrlManager extends Component
* [
* 'dashboard' => 'site/index',
*
* 'POST <controller:[\w-]+>s' => '<controller>/create',
* 'POST <controller:[\w-]+>' => '<controller>/create',
* '<controller:[\w-]+>s' => '<controller>/index',
*
* 'PUT <controller:[\w-]+>/<id:\d+>' => '<controller>/update',

Loading…
Cancel
Save