<?php

require_once "view/HTMLView.php";
require_once "view/ScrapeView.php";
require_once "controller/ScrapeController.php";
require_once "model/ScrapeModel.php";
require_once "model/MovieModel.php";
error_reporting(E_ERROR);
$controller = new controller\ScrapeController();
$controller->doScrape();
Beispiel #2
0
<?php

require_once "src/controllers/ScrapeController.php";
require_once "src/views/ScrapeView.php";
require_once "src/models/Scraper.php";
require_once "src/views/LayoutView.php";
require_once "src/views/FormView.php";
ini_set('display_errors', 'On');
ini_set('display_errors', 1);
error_reporting(E_ALL);
date_default_timezone_set("Europe/Stockholm");
$lv = new \view\LayoutView();
$fv = new \view\FormView();
$ctrl = new \controller\ScrapeController($fv);
$ctrl->doControl();
$lv->render($ctrl->getView()->getResponse());