symfony 2.5 use ClassLoader to add Zend_pdf -
i'm working in symfony 2.5 , want use zend framework pdf (zend_pdf) i tried classloader wrong because doesn't work (of course)... i don't know add classloader... thought in autoload.php not know how... autoload.php, standard one: <?php use doctrine\common\annotations\annotationregistry; use composer\autoload\classloader; /** * @var classloader $loader */ $loader = require __dir__.'/../vendor/autoload.php'; annotationregistry::registerloader(array($loader, 'loadclass')); return $loader; i tried adding in controller this: use symfony\component\classloader\classloader; /** * @template() */ public function pdfaction() { $loader = new classloader(); $loader->addprefix('zend', __dir__.'/vendor/zf/library'); $loader->register(); $pdf = new \zend\pdf\zend_pdf(); .... but says: attempted load class "zend_pdf" namespace "zend\pdf". did forget "use" statement nam