felix7 Posted January 4, 2018 Share Posted January 4, 2018 (edited) Hi, I made a custom module that I register in displayTopColumn hook. It is a basic form (email, name and a text area) and I want process but it doesn't work. My module folder structure is: mymodule/ mymodule.php controllers/ front/ validate.php views/ templates/ front/ mymodule.tpl So I'm trying a basic action: when I submit the form, redirect to 'index.php'. This is my controller code: <?php if (!defined('_PS_VERSION_')) exit; class AaaValidateController extends ModuleFrontController { public function initContent() { parent::initContent() Tools::redirect('index.php'); } } Problem is that when I try 'domain/module/mymodule/validate' it returns a white page, no an error, so I don't know what to do. And one question: if I modify the controller or main file of my module, do i have to reset it? Or doesn't it matter? Thanks in advance. Edited January 28, 2018 by felix7 (see edit history) Link to comment Share on other sites More sharing options...
felix7 Posted January 28, 2018 Author Share Posted January 28, 2018 Solved here (in spanish): https://www.prestashop.com/forums/topic/649878-solucionado-controlador-de-un-módulo-propio/ 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