protected function newComment($id)
 {
     $snotif = new sNotificationDetail();
     if (isset($_POST['sNotificationDetail'])) {
         $snotif->attributes = $_POST['sNotificationDetail'];
         $snotif->parent_id = $id;
         $snotif->save();
         Yii::app()->user->setFlash('success', 'Komen terkirim');
         Yii::app()->user->setFlash('success', '<strong>Great!</strong> Comment has sent..');
         $this->refresh();
     }
     return $snotif;
 }
 public function getCountComment($id)
 {
     $model = sNotificationDetail::model()->count(array('condition' => 'parent_id = ' . $id));
     if ($model == null) {
         return 0;
     } else {
         return $model;
     }
 }
 
		<br/>	
		<?php 
echo $data->read_id == 1 && $data->receiver_id != 0 ? 'Unread' : '';
?>
</strong>
	</div>

	<div class="span7">
		<div class="well">
			<?php 
echo strlen($data->long_desc) <= 300 ? $data->long_desc : substr($data->long_desc, 0, 300) . "...";
?>
			
			<h6><?php 
echo waktu::getInstance()->nicetime($data->sender_date);
?>
</h6>
			
			<?php 
$comment = sNotificationDetail::model()->findAll(array('condition' => 'parent_id = ' . $data->id));
if (isset($comment)) {
    echo "<br/>";
    $this->renderPartial('/sNotification/_comments', array('comments' => $comment));
}
?>
		</div>

	</div>
</div>