Hkofoed Posted December 17, 2013 Share Posted December 17, 2013 Hi there. I'm trying to create a custom module with a controller method that needs to be called directly from a url. I have created a module called 'mymodule', then I have created a controller ' /controllers/front/default.php The controller class is set to ' MymoduleDefaultModuleFrontController extends ModuleController ' And then within this controller the __construct method is called. Is this the correct way to go about it and how can i call the controller via url? Something like..... www.aaaa.com/modules/mymodule Any suggestions. I have tried like this: http://www.prestashop.com/blog/en/custom-url-routing-prestashop-modules/ But I can't get it to execute a custom method within the controller. Regards Henrik Link to comment Share on other sites More sharing options...
NemoPS Posted December 18, 2013 Share Posted December 18, 2013 It should extend ModuleFrontController Have a look here: http://nemops.com/creating-new-pages-in-prestashop/ 1 Link to comment Share on other sites More sharing options...
Hkofoed Posted December 18, 2013 Author Share Posted December 18, 2013 Hello Nemo. That did the trick... and thanks for the useful link.... appreciate it:-) Regards Link to comment Share on other sites More sharing options...
NemoPS Posted December 18, 2013 Share Posted December 18, 2013 Glad to know you solved it! 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