Hassene kh Posted December 10, 2020 Share Posted December 10, 2020 Hi guys , I want to know if I need to add use statement in controller class to instantiate the entity " LocationMap " inside Module PrestaShop ? Thanks in advance. Link to comment Share on other sites More sharing options...
Web Engg. Posted December 12, 2020 Share Posted December 12, 2020 Hi you need to include_once LocationMap class into your Display controller For example require_once _PS_MODULE_DIR_ . ‘ns_monmodule/classes/locationmap.php; After that you can use that class name to Create object thanks 1 Link to comment Share on other sites More sharing options...
Hassene kh Posted December 14, 2020 Author Share Posted December 14, 2020 Thanks , I have already done that, and I have resolved the problem thanks for your replay. Link to comment Share on other sites More sharing options...
Web Engg. Posted December 14, 2020 Share Posted December 14, 2020 1 minute ago, Hassene kh said: Thanks , I have already done that, and I have resolved the problem thanks for your replay. That’s great welcome Link to comment Share on other sites More sharing options...
jugalfas Posted April 15, 2021 Share Posted April 15, 2021 On 12/14/2020 at 4:10 PM, Hassene kh said: Thanks , I have already done that, and I have resolved the problem thanks for your replay. can you please tell me how you solved that. i have same problem with another class. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now