yii-view icon indicating copy to clipboard operation
yii-view copied to clipboard

ViewRenderer#extractControllerName not specify what happens nested controller namespace

Open kamarton opened this issue 2 years ago • 0 comments

What steps will reproduce the problem?

My class with namespace: MyApp\AllControllers\MoreController\MyController. In this case, how does the views namespace?

  • more-controller\my OR
  • my

https://github.com/yiisoft/yii-view/blob/64e92e9a6c835b19455bb161eb3c42b9164df200/src/ViewRenderer.php#L504-L522

What is the expected result?

IMO my

What do you get instead?

  • I haven't tested how the code works at the moment.
  • no documented

Additional info

Q A
Version 5.0.?
PHP version -
Operating system -

kamarton avatar Oct 13 '22 04:10 kamarton