protected function setPath($view)
    {
        $this->viewModel = new ViewModel([], $this->layout->getName());

        if ($view == null) {
            $view = $this->findView();
        }

        $this->viewModel->view = $view;

        viewResolver()->collectDetails($this->viewModel);

        $this->path = $view;
    }