Esempio n. 1
0
 function getProductComment($productId)
 {
     $comment = new Productcomment();
     $comment->where('product_id', $productId);
     $comment->order_by('creationDate', "asc");
     $comment->get_iterated();
     $dis3['comment'] = $comment;
     $dis3['base_url'] = base_url();
     return $this->load->view('front/product/product_comment', $dis3, TRUE);
 }
Esempio n. 2
0
 function loadComment($id)
 {
     $direction = $this->input->post('direction') ? $this->input->post('direction') : "asc";
     $comment = new Productcomment();
     $comment->where('product_id', $id);
     $comment->order_by('creationDate', $direction);
     $comment->get_iterated();
     $dis['comment'] = $comment;
     $dis['base_url'] = base_url();
     $this->load->view('front/product/product_comment', $dis);
 }