コード例 #1
0
 public function showOrder($id)
 {
     if (!Order::isOrder($id)) {
         return Redirect::to('/konto');
     }
     $this->ViewTemplate['title'] .= ' - Zamówienie';
     $order = Order::getOrderInfo($id);
     $orderView = ['orderItems' => Order::getOrderItems($id), 'orderId' => $id, 'order' => $order, 'address' => Order::getOrderAddress($order[0]->address_id)];
     return view('template', $this->ViewTemplate)->nest('content', 'order', $orderView);
 }
コード例 #2
0
 public function order($id)
 {
     $this->view['title'] .= 'Panel administracyjny - Zamówienie - ' . $id;
     $order = Order::getOrderInfo($id);
     $orderView = ['orderItems' => Order::getOrderItems($id), 'orderId' => $id, 'order' => $order, 'address' => Order::getOrderAddress($order[0]->address_id)];
     return view('admin/template', $this->view)->nest('content', 'admin/order', $orderView);
 }