src/Wizard.php
public function addFinish($callback)
    {
        if (count($this->steps) == $this->currentStep + 1) {
            $this->buttonFinish->link($this->stepCallback->getURL(count($this->steps)));
        } elseif ($this->currentStep == count($this->steps)) {
            $this->buttonPrev->destroy();
            $this->buttonNext->addClass('disabled')->set('Completed');
            $this->buttonFinish->destroy();

            $this->app->catch_runaway_callbacks = false;
            call_user_func($callback, $this);
        } else {
            $this->buttonFinish->destroy();
        }
    }
public function addFinish($callback)
    {
        if (count($this->steps) == $this->currentStep + 1) {
            $this->buttonFinish->link($this->stepCallback->getURL(count($this->steps)));
        } elseif ($this->currentStep == count($this->steps)) {
            $this->buttonPrev->destroy();
            $this->buttonNext->addClass('disabled')->set('Completed');
            $this->buttonFinish->destroy();

            $this->app->catch_runaway_callbacks = false;
            call_user_func($callback, $this);
        } else {
            $this->buttonFinish->destroy();
        }
    }
public function addFinish ( $ callback ) { if ( count ( $ this -> steps ) == $ this -> currentStep + 1 ) { $ this -> buttonFinish -> link ( $ this -> stepCallback -> getURL ( count ( $ this -> steps ) ) ) ; } elseif ( $ this -> currentStep == count ( $ this -> steps ) ) { $ this -> buttonPrev -> destroy ( ) ; $ this -> buttonNext -> addClass ( 'disabled' ) -> set ( 'Completed' ) ; $ this -> buttonFinish -> destroy ( ) ; $ this -> app -> catch_runaway_callbacks = false ; call_user_func ( $ callback , $ this ) ; } else { $ this -> buttonFinish -> destroy ( ) ; } }
Adds an extra screen to show user when he goes beyond last step.
There won't be "back" button on this step anymore.

@param callable $callback Virtual page
Adds an extra screen to show user when he goes beyond last step . There won t be back button on this step anymore .