Exemplo n.º 1
0
 public function edit($id)
 {
     self::displayFlash($this->app->view()->getData('flash'));
     parent::routes()->render('edit_customer.twig', array('app_base' => $this->appBase, 'errors' => self::$errors, 'results' => Customer::showCustomer($id), 'title' => 'Edit Customer', 'tmp_address' => self::$tmpAddress, 'tmp_email' => self::$tmpEmail, 'tmp_name' => self::$tmpName, 'tmp_notes' => self::$tmpNotes, 'tmp_phone' => self::$tmpPhone));
 }
Exemplo n.º 2
0
 public function index()
 {
     parent::routes()->render('index_checkout.twig', array('app_base' => $this->appBase, 'carts' => Cart::countCart(), 'customers' => Customer::showCustomer(isset($_SESSION['idCustomer']) ? $_SESSION['idCustomer'] : null), 'is_customer' => isset($_SESSION['emailCustomer']) ? sizeof($_SESSION['emailCustomer']) : 0, 'results' => Cart::indexCart(), 'title' => 'Checkout', 'total' => Cart::totalCart()));
 }