acetous/Symfony-Themed — Issue #1: Cannot find global partial
Author: acetous
Created: 2011-11-02 15:10:12+00:00
State: open

@AlexDmitriev reported this issue:

>Hello, Sebastian.
Your plugin is great, but there is some problems with it.
When Im trying to include_partial from 'global' namespace (its located in /apps/aplication_name/templates/) , I can`t find that partial (template file).

>i've attempted to correct it by adding
`$class = sfConfig::set('mod'.strtolower($moduleName).'_partial_view_class', 'Themed');`
before native
`$class = sfConfig::get('mod'.strtolower($moduleName).'_partial_view_class', 'sf').'PartialView';`
(PartialHelper.php)

>and

>`$this->directory = str_replace('/global', '', $this->directory);`
before
`if (!is_readable($this->directory.'/'.$this->template))`

>in sfView.class.php preRenderCheck() function.

>But maybe you can fix that whout coding symfony lib classes.