本文整理匯總了PHP中ArticleModel::getEditDate方法的典型用法代碼示例。如果您正苦於以下問題:PHP ArticleModel::getEditDate方法的具體用法?PHP ArticleModel::getEditDate怎麽用?PHP ArticleModel::getEditDate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ArticleModel
的用法示例。
在下文中一共展示了ArticleModel::getEditDate方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: explode
<?php
$id = explode('/', $_SERVER['REQUEST_URI'], 4)[2];
$title = ArticleModel::getTitle($this->pdo, $id);
$date = ArticleModel::getDate($this->pdo, $id);
$author = ArticleModel::getAuthor($this->pdo, $id);
$content = ArticleModel::getContent($this->pdo, $id);
$edit_author = ArticleModel::getEditAuthor($this->pdo, $id);
$edit_date = ArticleModel::getEditDate($this->pdo, $id);
?>
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sup'Teaching.fr | <?php
echo $title;
?>
</title>
<link rel="icon" href="/assets/img/favicon.png">
<link rel="stylesheet" href="/assets/css/default.css">
<link rel="stylesheet" href="/assets/css/jquery.sidr.dark.min.css">
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<?php
include 'header.php';
?>
<main role="main">
<section class="container">