lightflowmark wrote:
>
> Hi,
> I feel I'm missing something with Zend_Loader_Autoload, as I can't make it
> do what I want!
>
> I think the relevant points are:
> 1) my models are are in a models directory and are not prefixed -
> models/SomeTable.php contains class SomeTable extends
> Zend_Db_Table_Abstract, etc.
>
> 2) I'm using a 3rd-party library which has it's own autoloader, and also
> does not use prefixes (DOMPDF), living in /library/DOMPDF
>
> [SNIP]
>
> Cheers,
> Mark
>
This is a shot in the dark, but have you put /library/DOMPDF into your
include path and tried to use the ZF autoloader to load everything?
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR .
'library/DOMPDF');
require_once('Zend/Loader/Autoloader.php');
$autoloader =
Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true);
I don't think pushAutoLoader would work if DOMPDF isn't namespaced. Just
make sure you have your models names different from any DOMPDF class. I tend
to create wrapper classes for that very reason. Just a suggestion, I'm
pretty new with the 1.8 autoloader myself!
-Mark
-----
Mark Garrett
DNA
Arkadelphia, AR
(Telecommuting to: Rogue River, OR)
--
View this message in context:
http://www.nabble.com/Autoloader-confusion-tp24030297p24082158.html
Sent from the Zend Framework mailing list archive at Nabble.com.