コード例 #1
0
<?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();
コード例 #2
0
ファイル: index.php プロジェクト: ad222kr/1dv449-webagent
<?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());