Closed lucacalcaterra closed 4 years ago
Render the page with the CMS controller instead:
$controller = new \Cms\Classes\Controller();
$html = $controller->run('/url-to-page')->getContent();
or
$page = \Cms\Classes\Page::loadCached(\Cms\Classes\Theme::getActiveTheme(), 'my-page.htm');
$controller = new \Cms\Classes\Controller();
$html = $controller->runPage($page);
Hi! Thanks for your works...
I cannot figure out ...There is a way to use twig layouts since parser doesn't support twig extends ?
Thanks !