Nope. Its just a normal directory.

I'm looking in the sfAutoLoad class now and it seems to me that  
$prefix is used to make sure that module level classes only get loaded  
when the action calling them is in the same module context. From  
sfAutoLoad...

....
     // see if the file exists in the current module lib directory
     // must be in a module context
     if (sfContext::hasInstance() && ($module =  
sfContext::getInstance()->getModuleName()) && isset($this- 
 >classes[$module.'/'.$class]))
     {
       require($this->classes[$module.'/'.$class]);

       return true;
     }
....

Now that makes sense.

The problem is that this code is never getting called because  
sfContext::hasInstance() evaluates to false.

????




On 7 Oct 2008, at 16:16, Thomas Rabaix wrote:

>
> There is a comment at line 101
> :               // FIXME: does not work for plugins installed with a  
> symlink
>
> Are you using your plugin with a simlink ?
>
> On Tue, Oct 7, 2008 at 5:09 PM, Jonathan Franks  
> <[EMAIL PROTECTED]> wrote:
>>
>> Yup, it is enabled.
>>
>> As I showed in the previous email, the class and the path to the  
>> class
>> are in the generated config_autoload.yml.php file
>>
>> The problem is that the array key includes a prefix.....
>>
>> 'ifdsContactForm/BaseifdsContactFormActions' => '/Users/jonathan/ 
>> Sites/
>> ifds.4/plugins/ifdsContactFormPlugin/modules/ifdsContactForm/lib/
>> BaseifdsContactFormActions.class.php',
>>
>> so the module name "ifdsContactForm/" is being prefixed onto the  
>> class
>> name "BaseifdsContactFormActions"
>>
>> if I change the sfAutoloadConfigHandler class to stop the prefix  
>> being
>> prepended to the class name then everything works as expected.
>>
>> ????
>>
>>
>>
>> On 7 Oct 2008, at 15:20, Eno wrote:
>>
>>>
>>> On Tue, 7 Oct 2008, Jonathan Franks wrote:
>>>
>>>> I'm using symfony 1.1.4 and the classes in...
>>>>
>>>> plugins / myplugin / modules / mypluginmodule / lib
>>>>
>>>> are not autoloading.
>>>
>>> Is the module enabled in your settings.yml?
>>>
>>>
>>>
>>>>
>>
>>
>>>
>>
>
>
>
> -- 
> Thomas Rabaix
> Internet Consultant
>
> >


--~--~---------~--~----~------------~-------~--~----~
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