Hi there,
I just went through something which appeared weird to me but maybe they is
an intent behind that which I cannot figure about. In my code, I tried to
customize the sf_module_dirs parameter by doing a :
sfConfig::set('sf_module_dirs', array('/path/where/I/want/it/to/look/'));
However, this was not working and I was always running in templates not
being found for rendering my views. Then I looked through symfony code and
saw the following in sfApplicationConfiguration :
public function getTemplateDirs($moduleName)
{
$dirs = array();
foreach (sfConfig::get('sf_module_dirs', array()) as $key => $value)
{
$dirs[] = $key.'/'.$moduleName.'/templates';
}
...
return $dirs;
}
So it seems, when setting sf_module_dirs only the keys in the array are
checked out by sfApplicationConfiguration::getTemplateDirs(). I could fix my
code by changing my configuration statement as follows :
sfConfig::set('sf_module_dirs', array('/path/where/I/want/it/to/look/' =>
'/path/where/I/want/it/to/look/'));
However, I was wondering if that was really the expected behaviour of the
method of if I should post a new ticket on Trac ?
Thanks for your input on this subject.
Cyril
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---