src/core/AbstractWebCtrl.php
protected function setView(string $ctrlName, string $actionName): void
    {
        $this->view = ViewFactory::createView($actionName, $ctrlName);
        if (!is_null($this->layout)) {
            $this->layout->view = $this->view;
        }
    }
protected function setView(string $ctrlName, string $actionName): void
    {
        $this->view = ViewFactory::createView($actionName, $ctrlName);
        if (!is_null($this->layout)) {
            $this->layout->view = $this->view;
        }
    }
protected function setView ( string $ ctrlName , string $ actionName ) : void { $ this -> view = ViewFactory :: createView ( $ actionName , $ ctrlName ) ; if ( ! is_null ( $ this -> layout ) ) { $ this -> layout -> view = $ this -> view ; } }
It's used for binding the controller with a view (both with the default
and with corresponding another controller).
@param string $ctrlName The controller name.
@param string $actionName The action name (without prefix action).
@return void.
It s used for binding the controller with a view ( both with the default and with corresponding another controller ) .