Tác giả Chủ đề: test  (Đọc 1833 lần)

0 Thành viên và 1 Khách đang xem chủ đề.

Offline ddnbgroup

  • Trung úy
  • ***
  • Điểm yêu thích +5/-0
  • Diễn đàn Nhật Bản
    • DDNBGROUP
  • Paypal Account: ddnbgroup@yahoo.co.jp
test
« vào lúc: Thứ ba, 20/09/2016, 11:10:42 am »
Code: Bạn không thể xem liên kết này. Đăng ký hoặc Đăng nhập
public function admin_index() {
        $this->Support->recursive = 1;

        $list_support = $this->Support->find('list', array(
            'fields'        =>    array('Support.id'),
            'conditions'    =>    array('Support.action'=>1)
        ));
        $this->set('list_support', $list_support);

        $this->Components->load('Paginator')->settings['Support'] = array(
            'conditions'    =>    array('Support.id'=>$list_support),
            'order'         =>    array(
                                      'Support.date' => 'DESC',
                                      'Support.modified' => 'DESC'
                                  ),
            'limit'         =>    100
        );
        $supports = $this->paginate('Support');
        $this->set('supports', $supports);
}