problems with fpdf in cakephp

0

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:

link

and the error that appears is this:

Class declarations may not be nested

    
asked by anonymous 24.08.2015 / 17:36

1 answer

0

Are you loading the vendor correctly? Does the vendor follow the conventions of cakephp?.

App::import('Vendor', 'SomeName', array('file' => 'some.name.php'));

See the session: Loading Vendors at: link

    
10.09.2015 / 22:26