public function successMessage($message, $afterRedirect = false)
    {
        if ($afterRedirect) {
            $_SESSION['GlobalMessage']['success'] = $message;
        }

        if (!empty($this->template)) {
            $this->template->globalSuccessMessage = $message;
        }
    }
public function successMessage($message, $afterRedirect = false)
    {
        if ($afterRedirect) {
            $_SESSION['GlobalMessage']['success'] = $message;
        }

        if (!empty($this->template)) {
            $this->template->globalSuccessMessage = $message;
        }
    }
public function successMessage ( $ message , $ afterRedirect = false ) { if ( $ afterRedirect ) { $ _SESSION [ 'GlobalMessage' ] [ 'success' ] = $ message ; } if ( ! empty ( $ this -> template ) ) { $ this -> template -> globalSuccessMessage = $ message ; } }
Display a success message

@param $message
@param bool $afterRedirect
Display a success message