I'm using symfony 1.1.4 and the classes in...

plugins / myplugin / modules / mypluginmodule / lib

are not autoloading.

If i look in the cached config_autoload.yml.php file, i see this....

....
// plugins module lib
'ifdsContactForm/BaseifdsContactFormActions' => '/Users/jonathan/Sites/ 
ifds.4/plugins/ifdsContactFormPlugin/modules/ifdsContactForm/lib/ 
BaseifdsContactFormActions.class.php',
'sfGuardAuth/BasesfGuardAuthActions' => '/Users/jonathan/Sites/ifds.4/ 
plugins/sfGuardPlugin/modules/sfGuardAuth/lib/ 
BasesfGuardAuthActions.class.php',
'sfGuardUser/BasesfGuardUserActions' => '/Users/jonathan/Sites/ifds.4/ 
plugins/sfGuardPlugin/modules/sfGuardUser/lib/ 
BasesfGuardUserActions.class.php',
....

If i edit the sfAutoloadConfigHandler class

109            $data[] = sprintf("'%s%s' => '%s',", $prefix, $class,  
str_replace('\\', '\\\\', $file));
109            $data[] = sprintf("'%s%s' => '%s',", '', $class,  
str_replace('\\', '\\\\', $file));

ie, remove the $prefix, the autoloading works perfectly.

So, what is the purpose of $prefix?? it appears to append the module  
name before the class name, but why??

Am i doing something wrong??

Thanks, Jonathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to