Exemplo n.º 1
0
 /**
  * Order Details
  * @param   integer $order_id
  */
 public function details($order_id = 0)
 {
     $this->pageTitle = 'Order Details';
     $this->vars['order'] = Order::with('customer')->with('cart.items')->find($order_id);
     if (!$this->vars['order']) {
         $this->fatalError = 'A order with an ID of ' . $order_id . ' could not be found.';
     }
 }