Symfony - Override sf_format when calling get_partial.
Posted
by deadwards
on Stack Overflow
See other posts from Stack Overflow
or by deadwards
Published on 2009-09-11T18:38:18Z
Indexed on
2010/06/01
14:23 UTC
Read the original article
Hit count: 145
I'm making an AJAX call in my symfony project, so it has an sf_format of 'js'. In the actionSuccess.js.php view, I call get_partial to update the content on the page. By default it looks for the partial in 'js' format since the sf_format is still set as 'js'. Is it possible to override the sf_format so that it uses the regular 'html' partial that I already have (so that I don't have to have two identical partials)?
© Stack Overflow or respective owner