@@ 28-36 (lines=9) @@ | ||
25 | * |
|
26 | * @return string |
|
27 | */ |
|
28 | public function debug($layoutId = null, $data = array()) |
|
29 | { |
|
30 | $layoutId = $layoutId ?: 'default'; |
|
31 | ||
32 | $renderer = new \JLayoutFile($layoutId); |
|
33 | $renderer->setIncludePaths($this->getLayoutPaths()); |
|
34 | ||
35 | return $renderer->debug(array_merge($this->getLayoutData(), $data)); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * Get the data that will be sent to the layout. |
|
@@ 62-70 (lines=9) @@ | ||
59 | * |
|
60 | * @return string |
|
61 | */ |
|
62 | public function render($layoutId = null, $data = array()) |
|
63 | { |
|
64 | $layoutId = $layoutId ?: 'default'; |
|
65 | ||
66 | $renderer = new \JLayoutFile($layoutId); |
|
67 | $renderer->setIncludePaths($this->getLayoutPaths()); |
|
68 | ||
69 | return $renderer->render(array_merge($this->getLayoutData(), $data)); |
|
70 | } |
|
71 | } |
|
72 |