Abrasax Posted April 14, 2015 Share Posted April 14, 2015 (edited) Hi Im new in Prestashop and I've been learning a lot the last days but I cant get a way to do something. I usually call an PHP to validade and send a form writen in HTML. So, in the button, action="sendMail.php" validates the form and send it. I've made the form but I realized that I cant use the method above(at least it's not working). Then I read that I can write a function in cmscontroller.php to do the thing. So I created the function public static function sendEmail(){ }, inside class CmsControllerCore extends FrontController. Then I wrote the code inside my sendEmail function. The thing is... How can I call the function from action="xxxxxxx" inside the button SEND of the form inside the CMS. I tried some variations of that <form id="formulario" action="IndexControllerCore::sendEmail()" method="post"> Nothing worked... how I call the function? If anyone can help me or correct me... or give me ideas iI'll be grateful. Edited April 14, 2015 by Abrasax (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts