예제 #1
0
<?php

$root = './../../..';
require $root . '/../app/initialize.php';
$post = Blog::findByID(4);
$pageTitle = $post->title;
$navSelect = 'blog';
$year = $year = getDateElements("%Y", $post->datetime);
$article = str_replace(['\\r', '\\n', '\\r\\n'], "", $post->article);
?>

<?php 
includeFile('site/header.php');
?>

	<a href='../../'>Blog</a> > <a href='../'><?php 
echo $year;
?>
</a> > <?php 
echo $post->title;
?>
<br>
	<br>

	<article>
		<h2><?php 
echo $post->title;
?>
</h2>

		<h3><?php 
예제 #2
0
<?php

$root = './../../..';
require $root . '/../app/initialize.php';
$post = Blog::findByID(1);
$pageTitle = $post->title;
$navSelect = 'blog';
$year = $year = getDateElements("%Y", $post->datetime);
?>

<?php 
includeFile('site/header.php');
?>

	<a href='../../'>Blog</a> >
	<a href='../'><?php 
echo $year;
?>
</a> >
	<?php 
echo $post->title;
?>
<br>
	<br>

	<article>
		<h2><?php 
echo $post->title;
?>
</h2>