I was under the assumption (and looking at my PEAR installation I think I might be right) that Date.php should not be inside the 'Date' directory.

On my installation it is outside (i.e. 'PEAR/Date.php' instead of 'PEAR/Date/Date.php')

Also, with the PEAR libraries I had mixed results when trying to vendor/include/require in the controller, but I did not persue it too far.  I just put my require_once statements in bootstrap.php and everything worked just fine.

I did a quick grep on the cake directory and I did not see a Date class which is what it is complaining about being re-declared, so it is likely that by trying to vendor/require the pear library in the controller where you are it is trying to declare the class multiple times.  I can't say this for sure though.

But try it in the bootstrap.php file (using require_once) and see if that works for you.

On 6/6/06, nate < [EMAIL PROTECTED]> wrote:

If the library is using require_once to load a file, it shouldn't
matter how many times it gets loaded, since PHP won't actually load it
more than once.

This may seem a little obvious, but did you look to see what file is
getting loaded on line 88, that's actually causing the error?  It's
possible that one of the Pear classes in conflicting with a Cake core
class.




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

Reply via email to