jbastarras Posted July 23, 2014 Share Posted July 23, 2014 Hello , i´ll try in class AdminOrdersController extends AdminOrdersControllerCore and not works I call like index.php?controller=AdminOrders&token=b25b78729e33e99c5359c54482392669&action=example with form <form method="post" action="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&action={$action|escape:'htmlall':'UTF-8'}"> <input type="submit" id="submitFunction" value="Actualize" name="submitFunction" class="button" > </form> And in my controller code public function __construct() { if ($_GET['action']=='example'){ $this->function_example(); }else{ parent::__construct(); $this->_conf = $this->_conf + array(32 => $this->l('texto')); } } Thanks Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2014 Share Posted July 23, 2014 if you will add to your if condition die(); does it work? Link to comment Share on other sites More sharing options...
jbastarras Posted July 24, 2014 Author Share Posted July 24, 2014 (edited) die() not working , I think that form not call the AdminOrdersController I´m calling in hook after hookDisplayBackOfficeHeader maybe I have to include with smarty I don´t know Edited July 24, 2014 by jbastarras (see edit history) 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