Added DB Access + Error page
This commit is contained in:
22
demos/blog/protected/views/post/_comments.php
Normal file
22
demos/blog/protected/views/post/_comments.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php foreach($comments as $comment): ?>
|
||||
<div class="comment" id="c<?php echo $comment->id; ?>">
|
||||
|
||||
<?php echo CHtml::link("#{$comment->id}", $comment->getUrl($post), array(
|
||||
'class'=>'cid',
|
||||
'title'=>'Permalink to this comment',
|
||||
)); ?>
|
||||
|
||||
<div class="author">
|
||||
<?php echo $comment->authorLink; ?> says:
|
||||
</div>
|
||||
|
||||
<div class="time">
|
||||
<?php echo date('F j, Y \a\t h:i a',$comment->create_time); ?>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<?php echo nl2br(CHtml::encode($comment->content)); ?>
|
||||
</div>
|
||||
|
||||
</div><!-- comment -->
|
||||
<?php endforeach; ?>
|
||||
Reference in New Issue
Block a user