i'm trying to override a zend library (Zend_Pdf_Page) and it doesn't seem to be working. i'm putting it in app/code/local/Zend/Zend_Pdf_Page.php, but the parent class is being used instead.

are there any configuration changes i need to make to get it to work?



1 Answer 1


all Zend classes are instantiatet directly, for example here:

$page = new Zend_Pdf_Page($xSize, $ySize);

This is the reason you can't use any config.xml syntax to change the class itself with an <rewrite />

But the include path is set as expected:


Therefore putting a Zend class in the correct path (yours is wrong) should do the trick:

  • I stand corrected... :) Good to know! Mar 4, 2013 at 18:24
  • If it is working and my answer helped, you are welcome to mark it as solution :) Mar 4, 2013 at 19:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.