Added DB Access + Error page
This commit is contained in:
7
demos/blog/protected/components/views/recentComments.php
Normal file
7
demos/blog/protected/components/views/recentComments.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<ul>
|
||||
<?php foreach($this->getRecentComments() as $comment): ?>
|
||||
<li><?php echo $comment->authorLink; ?> on
|
||||
<?php echo CHtml::link(CHtml::encode($comment->post->title), $comment->getUrl()); ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
6
demos/blog/protected/components/views/userMenu.php
Normal file
6
demos/blog/protected/components/views/userMenu.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<ul>
|
||||
<li><?php echo CHtml::link('Create New Post',array('post/create')); ?></li>
|
||||
<li><?php echo CHtml::link('Manage Posts',array('post/admin')); ?></li>
|
||||
<li><?php echo CHtml::link('Approve Comments',array('comment/index')) . ' (' . Comment::model()->pendingCommentCount . ')'; ?></li>
|
||||
<li><?php echo CHtml::link('Logout',array('site/logout')); ?></li>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user