Hello and thank's for help!

My "vendor call" is: vendor('file_name');
Not including ".php" in the call.
My file is not in a subfolder, but my Cake's core folder and my App
folder and Webroot are separate.
I'm using Cake 1.2.0.5875 pre-beta, on Windows XP with Apache 2/PHP
5.2/MySQL 5.
I will test again... maybe it's just a path error.

BR

Avairet



On 21 nov, 05:54, Grant Cox <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to