I have no idea why it doesn't work for you, it works fine here. Are you sure you aren't including the ".php" part of the filename in your vendor call? Is your file in a subfolder or anything? What version of Cake are you using?
The vendor() function is defined in /cake/basics.php, and is not very complex. Throw some log() statements in there, you should figure out what is going wrong. On Nov 20, 11:21 pm, avairet <[EMAIL PROTECTED]> wrote: > Hello, > > If I put a php file in "cake/vendors" directory, when I try to include > it by using "vendor(my_php_file)" in a controller or a helper, this > doesn't work... I must put my php file in "app/vendors" directory to > access it. > So to share an external PHP library in all my cake applications, I > must copy this library in all apps directories, this is not useful! > > Why the cake/vendors directory doesn't work correctly? > > I need to point out that my Cake directory and apps directories are > separated. > > Avairet --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
