Commit d62f7beb by Qiang Xue

Fixes #4231: turned Controller::findLayoutFile() from protected to public.

parent 22efab81
...@@ -435,7 +435,7 @@ class Controller extends Component implements ViewContextInterface ...@@ -435,7 +435,7 @@ class Controller extends Component implements ViewContextInterface
* Please refer to [[render()]] on how to specify this parameter. * Please refer to [[render()]] on how to specify this parameter.
* @throws InvalidParamException if an invalid path alias is used to specify the layout. * @throws InvalidParamException if an invalid path alias is used to specify the layout.
*/ */
protected function findLayoutFile($view) public function findLayoutFile($view)
{ {
$module = $this->module; $module = $this->module;
if (is_string($this->layout)) { if (is_string($this->layout)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment