php echo html anchor blog Post list hr echo h1 post- title h1 echo pos

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<?php
echo html::anchor('blog','Post list') .'<hr>';
echo '<h1>'. $post->title.'</h1>';
echo '<p>'.$post->text.'</p>';
echo '<p>'.html::anchor('blog/add_comment/'.$post->id, 'Add comment').'</p>';
echo '<hr>';
foreach($comments as $comment)
{
echo '<p><strong>'.$comment->name.'</strong><br />';
echo ''.$comment->text.'</p>';
}
?>