My vendor folder looks like this:
vendors/PEAR: all PEAR inside, so you can find:
vendors/PEAR/Cache/*
vendors/PEAR/Translation2/*
vendors/PEAR/PEAR.php
etc.
Then on vendors/pear.inc.php I have a file with this:
define('PEAR_PATH', dirname(__FILE__) . DS . 'PEAR');
set_include_path(PEAR_PATH . PATH_SEPARATOR . get_include_path());
Then on my app/config/bootstrap.php I have:
vendor('pear.inc');
As you can see I haven't yet loaded any PEAR packages. The idea is not for
me to load *all* pear packages, but only those I need, when I need them. So
I load PEAR libraries as I need them, for example in a component I may have:
require_once('Translation2' . DS . 'Translation2.php');
So the same as you would on any other application when including PEAR
packages.
Also your vendors/pear.inc.php instead of referencing the PEAR package as
being inside vendors/, may include them from somewhere else on your file
system. Just change the PEAR_PATH defined there and you'll be good to go.
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de lukemack
Enviado el: Sábado, 24 de Febrero de 2007 08:17 p.m.
Para: Cake PHP
Asunto: Re: PEAR HTML_QuickForm and cakephp
Thanks - do you just have a simple vendor file doing the includes for
the packages in their standard locations or move the individual
packages into subfolders under vendors?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---