Jump to content

how can I Call a custom controller action method whith a form


jbastarras

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...