getName() . '.php'; if(file_exists($viewFile)) { if(!empty($node->getNodeData()->getData())) { extract($node->getNodeData()->getData()); } $action_url = new URL(['page' => CURRENT_PAGE]); $captcha = new Captcha; $_SESSION['captcha'] = $captcha->getSolution(); $recipient_found = false; if(isset($email)){ $recipient_found = true; } else{ $email = ''; } $admin_content = ''; if($_SESSION['admin']) { $admin_content = '

Configuration du formulaire

'; } // vérifier qu'une adresse de destination est bien configurée $no_recipient_warning = '

Aucune adresse de destination n\'a été configurée, envoi d\'e-mail impossible!

'; ob_start(); require $viewFile; $this->html = ob_get_clean(); // pas de concaténation ici, on écrase } } }