I am using Zend Loader from here in my project and I am unable to configure Zend autoloader for the DOMPDF, working parallel to dompdf autoloader. Is there any way to set zend autoload to configure such that it fallback to dompdf auotloader.
I see some example e.g using pushAutoLoader, but that seems its using Zend older version (v < 2 probably )
require_once('dompdf/dompdf_config.inc.php' );
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->pushAutoloader('DOMPDF_autoload', '');
What is the alternative to pushAutoloader() , in ZF2 Loader ? I do not see any such method right now.
One more thing I cannot use 'fallback_autoloader' => true,
option as I am using php 5.3.1 which gives me error :
`Call to undefined function Zend\Loader\stream_resolve_include_path()`
As it seems stream_resolve_include_path()
is added in php 5.3.2
This seems to be a minor glitch , just found that the DOMPDF config file is using an obsolete way to register its autoloader e.g
and a fix would be just use the
spl_autoload_register
bcz php spl_autoload_register vs __autoload? and replace the above code with just one line, with minor update to autoload functioncheers :)