lib/Dwoo/Plugins/Functions/PluginExtends.php 1 location
|
@@ 106-110 (lines=5) @@
|
103 |
|
throw new CompilationException($compiler, 'Extends : ' . $e->getMessage()); |
104 |
|
} |
105 |
|
|
106 |
|
if ($parent === null) { |
107 |
|
throw new CompilationException($compiler, 'Extends : Resource "' . $resource . ':' . $identifier . '" not found.'); |
108 |
|
} elseif ($parent === false) { |
109 |
|
throw new CompilationException($compiler, 'Extends : Resource "' . $resource . '" does not support extends.'); |
110 |
|
} |
111 |
|
|
112 |
|
$curTpl = $parent; |
113 |
|
$newParent = array( |
lib/Dwoo/Plugins/Functions/PluginExtendsCheck.php 1 location
|
@@ 46-52 (lines=7) @@
|
43 |
|
|
44 |
|
$tpl = $compiler->getCore()->templateFactory($resource, $identifier); |
45 |
|
|
46 |
|
if ($tpl === null) { |
47 |
|
throw new CompilationException($compiler, |
48 |
|
'Load Templates : Resource "' . $resource . ':' . $identifier . '" not found.'); |
49 |
|
} elseif ($tpl === false) { |
50 |
|
throw new CompilationException($compiler, |
51 |
|
'Load Templates : Resource "' . $resource . '" does not support includes.'); |
52 |
|
} |
53 |
|
|
54 |
|
$out = '\'\';// checking for modification in ' . $resource . ':' . $identifier . "\r\n"; |
55 |
|
|
lib/Dwoo/Plugins/Functions/PluginLoadTemplates.php 1 location
|
@@ 61-67 (lines=7) @@
|
58 |
|
|
59 |
|
$tpl = $compiler->getCore()->templateFactory($resource, $identifier); |
60 |
|
|
61 |
|
if ($tpl === null) { |
62 |
|
throw new CompilationException($compiler, |
63 |
|
'Load Templates : Resource "' . $resource . ':' . $identifier . '" not found.'); |
64 |
|
} elseif ($tpl === false) { |
65 |
|
throw new CompilationException($compiler, |
66 |
|
'Load Templates : Resource "' . $resource . '" does not support includes.'); |
67 |
|
} |
68 |
|
|
69 |
|
$cmp = clone $compiler; |
70 |
|
$cmp->compile($compiler->getCore(), $tpl); |