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(); $no_recipient_warning = ''; $admin_content = ''; if($_SESSION['admin']) { $admin_content = '

Configuration du formulaire

'; } $recipient_found = false; // recherche BDD if(!$recipient_found){ // 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 } } }