1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* index.html.twig */ |
4
|
|
|
class __TwigTemplate_171da130139d640faff447a21ec7a6e817cf9e36962bd12541f247c91175573d extends Twig_Template |
|
|
|
|
5
|
|
|
{ |
6
|
|
|
public function __construct(Twig_Environment $env) |
7
|
|
|
{ |
8
|
|
|
parent::__construct($env); |
9
|
|
|
|
10
|
|
|
// line 1 |
11
|
|
|
$this->parent = $this->loadTemplate("layout.html.twig", "index.html.twig", 1); |
12
|
|
|
$this->blocks = array( |
13
|
|
|
'content' => array($this, 'block_content'), |
14
|
|
|
); |
15
|
|
|
} |
16
|
|
|
|
17
|
|
|
protected function doGetParent(array $context) |
18
|
|
|
{ |
19
|
|
|
return "layout.html.twig"; |
|
|
|
|
20
|
|
|
} |
21
|
|
|
|
22
|
|
|
protected function doDisplay(array $context, array $blocks = array()) |
23
|
|
|
{ |
24
|
|
|
$this->parent->display($context, array_merge($this->blocks, $blocks)); |
|
|
|
|
25
|
|
|
} |
26
|
|
|
|
27
|
|
|
// line 3 |
28
|
|
|
public function block_content($context, array $blocks = array()) |
|
|
|
|
29
|
|
|
{ |
30
|
|
|
// line 4 |
31
|
|
|
echo " |
32
|
|
|
<h1>Rudra Framework</h1> |
33
|
|
|
|
34
|
|
|
"; |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
public function getTemplateName() |
38
|
|
|
{ |
39
|
|
|
return "index.html.twig"; |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
public function isTraitable() |
43
|
|
|
{ |
44
|
|
|
return false; |
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
public function getDebugInfo() |
48
|
|
|
{ |
49
|
|
|
return array ( 31 => 4, 28 => 3, 11 => 1,); |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ |
53
|
|
|
public function getSource() |
54
|
|
|
{ |
55
|
|
|
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); |
|
|
|
|
56
|
|
|
|
57
|
|
|
return $this->getSourceContext()->getCode(); |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
public function getSourceContext() |
61
|
|
|
{ |
62
|
|
|
return new Twig_Source("{% extends \"layout.html.twig\" %} |
63
|
|
|
|
64
|
|
|
{% block content %} |
65
|
|
|
|
66
|
|
|
<h1>Rudra Framework</h1> |
67
|
|
|
|
68
|
|
|
{% endblock %}", "index.html.twig", "F:\\OpenServer\\OSPanel\\domains\\github\\Rudra-Framework\\app\\resources\\twig\\view\\index.html.twig"); |
69
|
|
|
} |
70
|
|
|
} |
71
|
|
|
|
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.