-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
64 lines (52 loc) · 1.33 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
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* Created by PhpStorm.
* User: jony
* Date: 1/12/17
* Time: 12:01 AM
*/
require_once './vendor/autoload.php';
//load templates
$loader = new Twig_Loader_Filesystem('views');
//set cache directory
$twig = new Twig_Environment($loader, array(
'cache' => false,
'debug' => true,
'auto_reload' => true,
));
/**
* 1. Twig: The Basics
*/
//require_once './controller/01_twig_the_basics.php';
/**
* 2. Functions, Filters and Debugging with dump
*/
//require_once './controller/02_functions_filters_and_debugging_with_dump.php';
/**
* 3. Using Objects and Array Keys
*/
//require_once './controller/03_using_objects_and_array_keys.php';
/**
* 4. Using a Layout: Template Inheritance
*/
//require_once './controller/04_using_a_layout_template_inheritance.php';
/**
* 5. Including other Templates
*/
//require_once './controller/05_including_other_templates.php';
/**
* 6. If Statements with “Tests”
*/
//require_once './controller/06_if_statements_with_tests.php';
/**
* 7. The for “loop” and inline “if” Syntax
*/
//require_once './controller/07_the_for_loop_and_inline_if_syntax.php';
/**
* 8. Mistakes and Macros
*/
//require_once './controller/08_mistakes_and_macros.php';
/**
* 9. Extra Credit Tricks and HTML Escaping
*/
require_once './controller/09_extra_credit_tricks_and_html_escaping.php';