本文整理汇总了PHP中article::getArticleTemplate方法的典型用法代码示例。如果您正苦于以下问题:PHP article::getArticleTemplate方法的具体用法?PHP article::getArticleTemplate怎么用?PHP article::getArticleTemplate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类article
的用法示例。
在下文中一共展示了article::getArticleTemplate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showScripttime
}
if ($REX[CACHING_DEBUG]) {
print "Script time: " . showScripttime();
}
$SHOWARTICLE = false;
} else {
// start caching
$Cache->startCacheFile();
}
}
}
if ($SHOWARTICLE) {
$REX_ARTICLE = new article();
$REX_ARTICLE->setCLang($clang);
if ($REX_ARTICLE->setArticleId($article_id)) {
$REX_ARTICLE->getArticleTemplate();
} elseif ($REX_ARTICLE->setArticleId($REX[STARTARTIKEL_ID])) {
$REX_ARTICLE->getArticleTemplate();
} else {
echo "Kein Startartikel selektiert / No starting Article selected. Please click here to enter <a href=redaxo/index.php>redaxo</a>";
$REX[STATS] = 0;
}
//////////////////////////////////////////////
// advanced caching
//////////////////////////////////////////////
if ($Cache->makeCacheFile) {
$Cache->writeCacheFile();
if ($REX[CACHING_DEBUG]) {
print "<br>MadeCache<br>";
}
} else {
示例2: article
// $mail_aid
// $test_email
// $test_name
// $test_firstname
// $content
$to_email = $test_email;
$to_name = $test_name;
$to_firstname = $test_firstname;
// Testmail verschicken..
$REX['GG'] = true;
$REX['REDAXO'] = true;
$REX_ARTICLE = new article();
$REX_ARTICLE->setCLang(0);
$REX_ARTICLE->setArticleId($mail_aid);
// $REX_ARTICLE->setTemplateId(xx);
$content = $REX_ARTICLE->getArticleTemplate();
$REX['GG'] = false;
$REX['REDAXO'] = true;
// Allgemeine Initialisierung
$mail = new MyMailer();
$mail->AddAddress($to_email);
$mail->From = $mail_reply;
$mail->FromName = $mail_reply;
// Subject
$subject = $mail_subject;
$subject = str_replace("###EMAIL###", "{$to_email}", $subject);
$subject = str_replace("###NAME###", "{$to_name}", $subject);
$subject = str_replace("###FIRSTNAME###", "{$to_firstname}", $subject);
// Bodies
// html
$html_body = $content;