コード例 #1
0
ファイル: complete-order.php プロジェクト: naisly/WodenS
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 09.11.2015
 * Time: 16:47
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/OrderController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/OrderModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/OrderView.php';
$model = new OrderModel();
//It is important that the controller and the view share the model
$controller = new OrderController($model);
$view = new OrderView($model);
$controller->actionCompleteOrder();
$view->DoctypeView('order');
$view->headerView();
$view->thanksMessage();
コード例 #2
0
ファイル: placeorder.php プロジェクト: naisly/WodenS
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 09.11.2015
 * Time: 16:15
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/OrderController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/OrderModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/OrderView.php';
$model = new OrderModel();
//It is important that the controller and the view share the model
$controller = new OrderController($model);
$view = new OrderView($model);
$controller->actionGetHeaderCart();
$controller->getDefaultBilling();
$view->DoctypeView('Place Order');
$view->headerView();
$view->getPlaceOrder();