When I create a new PDF class extending it to FPDF to rewrite the Header, Footer, etc methods ... I get this following error, I already researched but could not solve ..
This is my private method in the controller:
and the error that appears is this:
Class declarations may not be nested