-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
52 lines (47 loc) · 1.36 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<?php
//require './vendor/autoload.php';
$loader = new Nette\Loaders\RobotLoader();
$loader->addDirectory(__DIR__ . './src');
// $loader->addDirectory(__DIR__ . '/app');
$loader->addDirectory(__DIR__ . '/libs');
$loader->setTempDirectory(__DIR__ . '/temp');
$loader->setAutoRefresh(true);
$loader->register();
// $home = new Wolf\Comp6\HomepageController();
// var_dump($home);
// echo $home->index();
//echo 'test';
$contact = new jrwf\ContactController();
var_dump($contact);
echo $contact->index();
$user = new jrwf\User\UserController();
var_dump($user);
echo $user->show();
$login = new jrwf\User\LoginController();
var_dump($login);
echo $login->index();
$gallery = new jrwf\GalleryController();
var_dump($gallery);
echo $gallery->index();
$http = new GuzzleHttp\Client();
$response = $http->request('GET', 'https://jw.cz');
$content = $response->getBody()->getContents();
echo $content;
$email = new PHPMailer\PHPMailer\PHPMailer();
try {
$email->setFrom('jiri.wolf@jw.cz', 'Jiri Wolf');
} catch (\PHPMailer\PHPMailer\Exception $e) {
}
?>
</body>
</html>