本文整理汇总了PHP中TemplateEngine::mustacheRenderFile方法的典型用法代码示例。如果您正苦于以下问题:PHP TemplateEngine::mustacheRenderFile方法的具体用法?PHP TemplateEngine::mustacheRenderFile怎么用?PHP TemplateEngine::mustacheRenderFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TemplateEngine
的用法示例。
在下文中一共展示了TemplateEngine::mustacheRenderFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PHPMailer
}
$id = DBUtils::executeQuery($insertReportStatement, $_SESSION['nume'], $_SESSION['industrie'], $_SESSION['email'], $receiveSugestions, $_SESSION['telefon'], $_SESSION['completedAnswers'], $_SESSION['website'], $htmlMessage);
require 'app/core/libs/PHPMailer/PHPMailerAutoload.php';
// echo $htmlMessage;
$mail = new PHPMailer();
$mail->isSMTP();
$mail->setFrom('admin@todaysquizz.ro', 'Admin');
$mail->addAddress($_SESSION['email'], 'User');
$mail->isHTML(true);
$mail->Subject = 'Raport quizz todays';
$mail->Body = $htmlMessage;
if (!$mail->send()) {
$mailStat = 'Raportul nu a fost trimis: ';
$mailSubStat = $mail->ErrorInfo;
} else {
$mailStat = 'Raportul a fost trimis cu succes';
$mailSubStat = 'Il vei primi pe mail in cateva momente';
}
$rconthtml = TemplateEngine::mustacheRenderFile('./views/thanksPage.html', array('mailStat' => $mailStat, 'mailSubStat' => $mailSubStat));
echo $rconthtml;
} else {
if ($nextPage == 'endQuiz') {
echo TemplateEngine::mustacheRenderFile('./views/endQuiz.html', array());
} else {
session_unset();
echo TemplateEngine::mustacheRenderFile('./views/intro.html', array());
}
}
}
echo TemplateEngine::mustacheRenderFile('./views/footer.html', array('totalQuestions' => $totalQuestions, 'completedAnswers' => $completedAnswers));