I Jumped the gun..

heres the fix

Lines 214 and 139 of PartialHelper.php  (this applied to sf 1.2)


$config = sfConfig::get('mod_'.$moduleName.'_partial_view_class');
if (empty($config)) {
  $config = sfConfig::get('mod_default_partial_view_class', 'sf');
}
$class = $config.'PartialView?';

-----
$view = new $class($context, $moduleName, $actionName, );
$view->setPartialVars($vars);

hope that makes sense.. I also reopened the ticket and pasted the fix
there as well.

Cheers.  (Also a slight update needs to be applied to sfSmartyPlugin
for 1.2) .. ill upload it to trunk and move trunk to a tag for 1.1

J

On Nov 26, 12:26 pm, "Kiril Angov" <[EMAIL PROTECTED]> wrote:
> I also want to know why this is the case. I had the same problem for
> sfHamlViewPlugin. The documentation states that now sfPartialView can
> be changed the same way sfPHPView can  be changed, but that is
> obviously not true. I think Fabian Lange was the committer who
> implemented the configurability of sfPartialView. In the 
> codehttp://trac.symfony-project.org/changeset/11482
>
> Thanks
>
> On Fri, Nov 21, 2008 at 8:09 PM, kennedy <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I posted a topic for the same point on the forums and didn't got any
> > answers. I hope I will received some feedback.
>
> > I noticed that I cannot use a different partial view class than
> > sfPartialView for global partial. (i.e.: include_partial('global/
> > mypartialtemplate'))
>
> > This issue is due to the fact that the PartialHelper checks for a
> > module configuration. But the template is in the application directly.
>
> > I am using the sfSmartyPlugin (sfSmartyView, sfSmartyPartialView) for
> > my frontend application.
>
> > PartialHelper get_partial method
>
> > $class = sfConfig::get('mod_'.$moduleName.'_partial_view_class',
> > 'sf').'PartialView';
>
> > This line always returns sfPartialView when the module name is global.
>
> > Should I open a ticket for that issue??
>
> > thanks,
> > kennedy
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to