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 e5974b8 commit 1c0d001Copy full SHA for 1c0d001
src/Component/Sitemap.php
@@ -44,6 +44,13 @@ protected function beforeRender() : void
44
$this->template->pages = $this->cache->call([$this, 'getPages']);
45
$this->template->date = new \Nette\Utils\DateTime();
46
}
47
+
48
+ public function render() : void
49
+ {
50
+ $this->beforeRender();
51
+ $this->template->setFile(__DIR__ . '/Sitemap.latte');
52
+ $this->template->render();
53
+ }
54
55
public function getPages() : array
56
{
0 commit comments