Esempio n. 1
0
								<h6><i><?php 
    echo time_ago($stat['DATETIME_STATUS']);
    ?>
</i></h6>
							</span>
						</div>
						<div class="panel-body">
							<div><?php 
    echo $stat['KONTEN'];
    ?>
</div>
							<hr style="height:1px; margin-top:5px;"> 
						</div>
						<?php 
    $criteria = new CDbCriteria();
    $komen = Komentar::model()->get_data_komentar($stat['ID_STATUS_USERS']);
    ?>
						<div class="m-t-sm h6" style="margin-left:10px; padding-bottom: 0px; margin-top:-30px;">
							<a href class="text-muted m-xs"><i class="icon-action-redo"></i> <?php 
    echo count($komen) . ' Comments';
    ?>
</a>
							<a href class="text-muted m-xs"><i class="icon-star"> Like</i></a>
						</div>
						<!-- .comment-reply -->
						<?php 
    $i = 0;
    foreach ($komen as $k) {
        if (!empty($k['FOTO'])) {
            $photoKomen = '/images/profile/' . $k['FOTO'];
        } else {
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer $id the ID of the model to be loaded
  * @return Komentar the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = Komentar::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }