src/Mvp/BoilerPlates/Login/LoginPresenter.php
protected function beforeRenderView()
    {
        $login = $this->getLoginProvider();

        if (isset($_GET["logout"])) {
            $login->logOut();
        }

        if ( $login->isLoggedIn() ){
            $this->onSuccess();
        }
    }
protected function beforeRenderView()
    {
        $login = $this->getLoginProvider();

        if (isset($_GET["logout"])) {
            $login->logOut();
        }

        if ( $login->isLoggedIn() ){
            $this->onSuccess();
        }
    }
protected function beforeRenderView ( ) { $ login = $ this -> getLoginProvider ( ) ; if ( isset ( $ _GET [ "logout" ] ) ) { $ login -> logOut ( ) ; } if ( $ login -> isLoggedIn ( ) ) { $ this -> onSuccess ( ) ; } }
Called just before the view is rendered.

Guaranteed to only be called once during a normal page execution.
Called just before the view is rendered .