Pimcore offers some static helpers:
Pimcore_Tool_Document::render
You can use this helper to render a page outside of a view, for example to send mails.
| Note Layouts are not supported so far. |
$content = Pimcore_Tool_Document::render(Document::getById(2)); echo $content;
Comments (2)
Oct 07, 2011
Pieter Meyvaert says:
When I use this code in my controller, it throws an fatal error. any suggestions...When I use this code in my controller, it throws an fatal error. any suggestions?
Oct 14, 2011
Maxim Dikun says:
It moved to Document_Service::renderIt moved to Document_Service::render