Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

long tags in templates

  • Loading branch information...
commit 467e3173c6b86a77d68b8399bdae54085ce0d70a 1 parent 86150cc
@nikcub nikcub authored
View
4 examples/blog/views/_article.php
@@ -1,3 +1,3 @@
-<h2><a href="/article/<?= $article['slug']; ?>"><?= $article['title']; ?></a></h2>
-<div><?= Markdown($article['body']); ?></div>
+<h2><a href="/article/<?php echo $article['slug']; ?>"><?php echo $article['title']; ?></a></h2>
+<div><?php echo Markdown($article['body']); ?></div>
<hr />
View
4 examples/blog/views/_comment.php
@@ -1,3 +1,3 @@
-<strong><?= $comment['name']; ?></strong> commented:
-<div><?= Markdown($comment['body']); ?></div>
+<strong><?php echo $comment['name']; ?></strong> commented:
+<div><?php echo Markdown($comment['body']); ?></div>
<hr />
View
6 examples/blog/views/article.php
@@ -1,15 +1,15 @@
<h1>Blog</h1>
<? include("_article.php"); ?>
-<h3>Comments (<?= count($comments); ?>)</h3>
-<?
+<h3>Comments (<?php echo count($comments); ?>)</h3>
+<?php
foreach ($comments as $comment) {
include("_comment.php");
}
?>
<h4>Add Comment</h4>
-<form method="post" action="/article/<?= $article['slug']; ?>/comment">
+<form method="post" action="/article/<?php echo $article['slug']; ?>/comment">
<strong>Name:</strong><br/>
<input type="text" name="name" /><br/>
<strong>Message:</strong><br/>
View
2  examples/blog/views/articles.php
@@ -1,6 +1,6 @@
<h1>Blog</h1>
-<?
+<?php
foreach ($articles as $article) {
include("_article.php");
}
Please sign in to comment.
Something went wrong with that request. Please try again.