Friday 15 January 2010

Autoload module class in Prestashop -


I have created a module that has an extra sensible variable for the FrontControllerCore class for an overdose.

The problem I'm having is trying to automatically load a class that is referenced in the controller in my module. The square is not being loaded and I do not know how to add it to the autoloader.

FrontController.php file should be located in the module when installing: Override \ classes \ controller \

Then from FrontController.php you can manually "include" manually like the file:

  require_once (dirname (__ file __) '/ .. / .. / .. / module / servicecharges / classes / ServiceCharge.php '.);  

This does not include any autoload.


No comments:

Post a Comment