Beispiel #1
0
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 22.11.2015
 * Time: 0:12
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/ShopController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/DefaultModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/ShopView.php';
//initiate the triad
$model = new DefaultModel();
//It is important that the controller and the view share the model
$controller = new ShopController($model);
$view = new ShopView($model);
$controller->actionGetData('Gadgets', 'Gadgets', 'All');
$view->DoctypeView('Buy Device');
$view->headerView();
$view->GetUI('device', 'gadgets');
Beispiel #2
0
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 28.10.2015
 * Time: 18:57
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/ShopController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/DefaultModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/ShopView.php';
//initiate the triad
$model = new DefaultModel();
//It is important that the controller and the view share the model
$controller = new ShopController($model);
$view = new ShopView($model);
$controller->actionGetData('Phones', 'Phones', 'All');
$view->DoctypeView('Buy Phone');
$view->headerView();
$view->GetUI('phone', 'phones');
Beispiel #3
0
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 20.11.2015
 * Time: 20:20
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/ShopController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/DefaultModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/ShopView.php';
//initiate the triad
$model = new DefaultModel();
//It is important that the controller and the view share the model
$controller = new ShopController($model);
$view = new ShopView($model);
$controller->actionGetData('Asus', 'Notebooks', 'Asus');
$view->DoctypeView('Buy Asus Laptop');
$view->headerView();
$view->GetUI('laptop', 'notebooks');
Beispiel #4
0
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 21.11.2015
 * Time: 1:35
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/ShopController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/DefaultModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/ShopView.php';
//initiate the triad
$model = new DefaultModel();
//It is important that the controller and the view share the model
$controller = new ShopController($model);
$view = new ShopView($model);
$controller->actionGetData('AppleTV', 'Television', 'AppleTV');
$view->DoctypeView('Buy Apple TV');
$view->headerView();
$view->GetUI('tv', 'television');