Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function index() {
- $this->layout = 'admin';
- if(isset($this->request->params['named']['search'])) {
- $this->request->params['named']['search'] = trim($this->request->params['named']['search']);
- }
- $this->Prg->commonProcess();
- $query = $this->Prg->parsedParams();
- $this->Order->contain('User', 'OrderProduct', 'OrderSignature');
- $this->Paginator->settings['order'] = "Order.created DESC";
- $this->Paginator->settings['conditions'] = $this->Order->parseCriteria($query);
- $this->Paginator->settings['group'] = array('Order.id');
- $orders = $this->Paginator->paginate();
- $this->set(compact('orders'));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement