Koko888 Posted August 26, 2014 Share Posted August 26, 2014 (edited) Hello, I'm trying to generate a sample form, but I can't get the 'save' button in the toolbar, here the code: public function formCategories() { $fields_form = array( 'form' => array( 'legend' => array( 'title' => $this->l('some title'), ), 'description' => '<ul> <li>'.$this->l('some description.').'</li> </ul>', 'submit' => array( 'title' => $this->l('Save'), ), 'buttons' => array( array( 'href' => 'http://someurl', 'title' => 'Generar', 'icon' => 'some-icon', ) ), ), ); $helper = new HelperForm(); $helper->title = ; $helper->show_toolbar = true; return $helper->generateForm(array($fields_form)); } This code only generates the button in the 'buttons' array but not the 'save' button in 'submit' array. Any idea of what I'm doing wrong? Thanks in advance Edited August 26, 2014 by Koko888 (see edit history) Link to comment Share on other sites More sharing options...
Krystian Podemski Posted August 26, 2014 Share Posted August 26, 2014 You should definetely check this file: https://github.com/PrestaShop/PrestaShop/blob/1.6/controllers/admin/AdminPatternsController.php 2 Link to comment Share on other sites More sharing options...
Koko888 Posted August 27, 2014 Author Share Posted August 27, 2014 Thank you Krystian, that file is so helpful 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