Created
October 2, 2012 19:56
-
-
Save Cacodaimon/3822908 to your computer and use it in GitHub Desktop.
Used @ cacodaemon.de
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>MVC Test Blog</title> | |
</head> | |
<body> | |
<header> | |
<h1>MVC Test Blog</h1> | |
</header> | |
<section id="content"> | |
<article> | |
<h2><?= $this->article->title ?></h2> | |
<span><?= date('Y-m-d H:i:s', $this->article->date->sec) ?></span> | |
<p><?= html_entity_decode($this->article->text) ?></p> | |
<a href="#comments"><h3>Comments</h3></a> | |
<?php foreach ($this->article->comments as $comment): ?> | |
<aside class="comments"> | |
<p>Autor: <?= $comment['autor'] ?></p> | |
<span><?= date('Y-m-d H:i:s', $comment['date']->sec) ?></span> | |
<p><?= $comment['text'] ?></p> | |
</aside> | |
<?php endforeach; ?> | |
<a href="#post_comment"></a> | |
<aside class="post_comment"> | |
<?= $this->postCommentForm ?> | |
</aside> | |
</article> | |
</section> | |
<footer> | |
Insert a stupid text here... | |
</footer> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>MVC Test Blog</title> | |
</head> | |
<body> | |
<header> | |
<h1>MVC Test Blog</h1> | |
</header> | |
<section id="content"> | |
<?php foreach($this->articles as $article): ?> | |
<article> | |
<h2><a href="<?= $this->url(array('module' => 'default', 'controller' => 'blog', 'action' => 'article', '_id' => $article->_id), null, true) ?>"><?= $article->title ?></a></h2> | |
<span><?= date('Y-m-d H:i:s', $article->date->sec) ?></span> | |
<p><?= $article->text ?></p> | |
<p>Comments: <a href="article.php?_id=<?= $article->_id?>#comments">[<?= count($article->comments) ?>]</a></p> | |
</article> | |
<?php endforeach; ?> | |
</section> | |
<footer> | |
Insert a stupid text here... | |
</footer> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment