Jump to content

Create Save and stay button in controller file of custom module


Recommended Posts


Maybe this will help:


$this->fields_form['buttons'] = array(
    'save-and-stay' => array(
        'title' => $this->l('Save and stay'),
        'name' => 'submitAdd'.$this->table.'AndStay',
        'type' => 'submit',
        'class' => 'btn btn-default pull-right',
        'icon' => 'process-icon-save'


I saw this in controllers\admin\AdminAttributesGroupsController.php but with title "Save then add another value"

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...