I'm in the process of porting a site to CakePHP, so far so good,
however I've run into some problems with manually installed PEAR
libraries used by a component.

The PEAR libraries are installed in a sub-directory of components
called MailSystem and used by the component with the statement:-

require_once("MailSystem/Mail.php");
require_once('MailSystem/Mail/mime.php');

However the libaries have their own require statements which cause the
whole thing to fall apart.

Warning: main(Mail/mimePart.php): failed to open stream: No such file
or directory in
/home/bob/public_html/beta/app/controllers/components/MailSystem/Mail/mime.php
on line 39

Fatal error: main(): Failed opening required 'Mail/mimePart.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php:/home/chalky/public_html/beta:/home/chalky/public_html/beta/app/')
in
/home/chalky/public_html/beta/app/controllers/components/MailSystem/Mail/mime.php
on line 39

Obviously I need to change the include_path to include those PEAR
libraries, however doing so in the component breaks CakePHP - so where
in the code should I do it?


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