seyha Posted August 15, 2011 Share Posted August 15, 2011 Dear All, I want to create a new object from other class that I has been include. How can I code in prestashop module file. My code like this : $empObject = new employee(); $empObject->employeeLists($token); I doesn't work for me. If anyone know about this please kindly to help me. I am appreciated with your help. Thanks in advances, Link to comment Share on other sites More sharing options...
shokinro Posted August 15, 2011 Share Posted August 15, 2011 I want to create a new object from other class that I has been include.How can I code in prestashop module file. If the class is a new class created out side of the core or override of the core, for example if it is in another module or in location, then you must manually include this file at where you use it in your module. use include_once, for example, include_once("The location of the file") $obj = new MyClass(); Hope this gives you some hints Link to comment Share on other sites More sharing options...
Recommended Posts