Render a partial from a task in Symfony 1.4
Posted
by Cryo
on Stack Overflow
See other posts from Stack Overflow
or by Cryo
Published on 2010-04-04T22:20:40Z
Indexed on
2010/04/04
22:23 UTC
Read the original article
Hit count: 367
I'm trying to render a partial in a Symfony task and having no luck. I found docs in 1.1 that say to just call get_partial()
but apparently that's no longer readily available in 1.4. I tried loading the helper manually with sfLoader::getHelpers('Partial');
but I get "Class sfLoader not found". Any help would be greatly appreciated.
For reference what I'm trying to do is generate an HTML file called 'header.html' from my global header partial used in all of my layouts for inclusion in a third-party forum I'm integrating (Simple Machines/SMF).
© Stack Overflow or respective owner