Пример #1
0
 function detailorderAction()
 {
     $r = $this->getRequest();
     $limit = $r->getParam('limit') ? $r->getParam('limit') : 10;
     $this->view->limit = $limit;
     $itemsPerPage = $limit;
     $this->view->itemsPerPage = $itemsPerPage;
     $offset = $r->getParam('offset') ? $r->getParam('offset') : 0;
     $this->view->offset = $offset;
     $idOrder = $r->getParam('orderId');
     $rowset = App_Model_Show_Order::show()->getOrderAndStatus($idOrder);
     $rowsetDetail = App_Model_Show_OrderDetail::show()->getOrderDetail($idOrder);
     $this->view->rowsHistory = App_Model_Show_OrderHistory::show()->getHistory($idOrder);
     $this->view->id = $idOrder;
     $this->view->rows = $rowset;
     $this->view->rowsDetail = $rowsetDetail;
 }