We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4b3cb7 commit 5651f13Copy full SHA for 5651f13
core/src/Parser.php
@@ -31,6 +31,9 @@ class Parser
31
protected $twig;
32
33
protected $twigEnabled = false;
34
+
35
+ public $blade;
36
37
protected $bladeEnabled = true;
38
39
protected $templateData = array();
@@ -104,10 +107,10 @@ public function setTemplatePath ($path, $supRoot = false)
104
107
105
108
if (!empty($path)) {
106
109
$this->templatePath = $path;
- if ($this->twigEnabled) {
110
+ if ($this->twig) {
111
$this->twig->setLoader(new Twig_Loader_Filesystem(MODX_BASE_PATH . $path));
112
}
- if ($this->bladeEnabled) {
113
+ if ($this->blade) {
114
$filesystem = new Filesystem;
115
$viewFinder = new FileViewFinder($filesystem, [MODX_BASE_PATH . $path]);
116
$this->blade->setFinder($viewFinder);
0 commit comments