A
A
Alexander Sadovnikov2015-11-16 18:26:32
PHP
Alexander Sadovnikov, 2015-11-16 18:26:32

How to fix class autoloading in PHPExcel?

I include the file classes/PHPExcel.php,
create a new instance of the PHPExcel class and get the error:
PHP Fatal error: Class 'PHPExcel_Calculation' not found
Obviously, the autoloader is weird. Perhaps this is due to the fact that spl autoloader does not work well with CamelCase, but no solution to this problem was found on Google. PHP Version - 5.3.10

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
OnYourLips, 2015-11-16
@OnYourLips

It is customary to include libraries in PHP using composer.
This will solve the problem.
And PHP should be updated.

N
newobj, 2015-11-16
@newobj

Specify the absolute path to the class

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question