-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update with newer variation on Aura.View
- Loading branch information
Paul M. Jones
committed
May 27, 2014
1 parent
399c19c
commit 4e89221
Showing
5 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?php use Aura\Html\Escaper as e; ?> | ||
|
||
<div class="blog-intro"> | ||
<h2><?= e::h($blog->title) ?></h2> | ||
<p class="byline"><?= e::h($blog->author) ?></p> | ||
<?= e::h($blog->intro) ?> | ||
<p><?= $this->a("/blog/read/{$blog->id}", 'Read More ...'); ?></p> | ||
<h2><?= e::h($this->_blog->title) ?></h2> | ||
<p class="byline"><?= e::h($this->_blog->author) ?></p> | ||
<?= e::h($this->_blog->intro) ?> | ||
<p><?= $this->a("/blog/read/{$this->_blog->id}", 'Read More ...'); ?></p> | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<h3>Add New Blog Post</h3> | ||
|
||
<?= $this->render('_form', array( | ||
'method' => 'POST', | ||
'action' => '/blog/add', | ||
'submit' => 'Create', | ||
'blog' => $this->blog, | ||
'_method' => 'POST', | ||
'_action' => '/blog/add', | ||
'_submit' => 'Create', | ||
'_blog' => $this->blog, | ||
)); ?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<?php foreach ($this->collection as $blog) { | ||
echo $this->render('_intro', array('blog' => $blog)); | ||
echo $this->render('_intro', array( | ||
'_blog' => $blog, | ||
)); | ||
} ?> |
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