Example #1
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');
Example #2
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');
Example #3
0
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 22.11.2015
 * Time: 1:04
 */
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('Samsung', 'Gadgets', 'Samsung');
$view->DoctypeView('Buy Galaxy Tab');
$view->headerView();
$view->GetUI('device', 'gadgets');
Example #4
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');
Example #5
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');
Example #6
0
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 21.11.2015
 * Time: 1:32
 */
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('IMac', 'Television', 'IMac');
$view->DoctypeView('Buy IMac');
$view->headerView();
$view->GetUI('tv', 'television');
Example #7
0
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 21.11.2015
 * Time: 2:06
 */
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('ShowTop', 'Television', 'ShowTop');
$view->DoctypeView('Buy ShowTop');
$view->headerView();
$view->GetUI('tv', 'television');