Jump to content

The Module class.


me_von_south

Recommended Posts

Hi Guys.

 

When I create a new Prestashop 1.6 project in Netbeans and I extend the Module class it doesn't pick up the Module class but only ModuleCore. So I was just wondering is the Module class declared somewhere in a file or is it auto generated during runtime because I also couldnt find it when searching the files? (I searched for  "class Module")

 

Then i have another question and that is what folders can I exclude from the netbeans project. Currently I exclude only the "cache" folder.

 

Thanks.

Link to comment
Share on other sites

The "Module" class I think it is auto-generated during runtime based on the informations in "cache/class_index.php" file, if there is no override for "Module" class, or in override/classes/module/Module.php if there is an override. Basically, if there is no override, Module=ModuleCore

BTW: You have to extend "Module", not "ModuleCore", so the overrides take place if there is any.

Edited by Goe Burlibasa (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...