src/JumpGate/ViewResolution/Resolvers/Path.php
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;
    }
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;
    }
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 ; }
Get a valid view path save it.

@param $view
Get a valid view path save it .