Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Modular Separation and DOMPDF: Fatal error
#1

[eluser]rogierb[/eluser]
H all,

I started to rewrite an app with the use of the Modular Separation library ( which is brilliant, I think).

Everything went very well until I got to DOMPDF. It it located in the plugins directory in the main application directory.

I get a Fatal error: Class 'DOMPDF' not found" when initiating the plugin. It used to work before the Modular Separation.
My guess is the __autoload() in dompdf does not work anymore. I just have no idea how to fix this so any help is appreciated.

Thanx
#2

[eluser]rogierb[/eluser]
I found out 2 things today:
1: those things above and on the side of you nose are called eyes.
2: If you use them, problems get solved a lot faster...

After a good nights rest I looked at My_Router and My_Loader again.
The first thing I notices was spl_autoload_register in My_router. Didn't see that yesterday...

Anyway, I registered the DOMPDF_autoload et voila. Done

Sleep. Very usefull. Eyes aswell.
#3

[eluser]sidscorner[/eluser]
Hi there,

I am having the same issue with Modular Separation and DOMPDF.

I tried registering DOMPDF_autoload in the MY_Router file but it's throwing an exception.

Is there something I've missed here?

EDIT: It worked - registered it in the dompdf_config.inc file.




Theme © iAndrew 2016 - Forum software by © MyBB