private function createFromTemplate($message, $template) {
        ob_start();
        ob_implicit_flush(false);

        if (is_array($message) && !empty($message)) {
            extract($message, EXTR_OVERWRITE);
        }

        $current_module = RouteController::$currentRoute['module'];
        $templatePath = MODULES_DIR . '/' . $current_module . '/Views/' . $template . '.php';
        require $templatePath;
        return ob_get_clean();
    }
private function createFromTemplate($message, $template) {
        ob_start();
        ob_implicit_flush(false);

        if (is_array($message) && !empty($message)) {
            extract($message, EXTR_OVERWRITE);
        }

        $current_module = RouteController::$currentRoute['module'];
        $templatePath = MODULES_DIR . '/' . $current_module . '/Views/' . $template . '.php';
        require $templatePath;
        return ob_get_clean();
    }
private function createFromTemplate ( $ message , $ template ) { ob_start ( ) ; ob_implicit_flush ( false ) ; if ( is_array ( $ message ) && ! empty ( $ message ) ) { extract ( $ message , EXTR_OVERWRITE ) ; } $ current_module = RouteController :: $ currentRoute [ 'module' ] ; $ templatePath = MODULES_DIR . '/' . $ current_module . '/Views/' . $ template . '.php' ; require $ templatePath ; return ob_get_clean ( ) ; }
Create From Template

Create message body from email template

@param mixed $message
@param string $template
@return string
Create From Template