php - How to use multiple versions of dompdf at the same time? -


i able render documents in old version of dompdf , in version 6.0 if them separate script executions. able render documents in old version , in new version @ same time. tried using namespaces this, , required file:

<?php namespace domold {     require_once('dompdf/dompdf_config.inc.php'); } namespace domnew {     require_once('dompdf6.0/dompdf_config.inc.php'); } ?> 

then try create instance of each corresponding class this

$dompdf = new domold\dompdf(); //rest of code here  $dompdf = new domnew\dompdf(); //rest of code here 

and errors failed opening required 'd:\apache2\htdocs\dompdf\include/domold\dompdf.cls.php'

is there better way this? need use both versions, please don't tell me use 1 version. using namespaces incorrectly?

thank you


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -