Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

PUT CLASS A TYPE SUBMMIT;

HOW TO PUT AS CLASS TO SUBMIT A ?. If I use the array gives me error



64.2k

at what compunent ?

are you building a form or what ?



30.7k

Hi,

could you explain a little bit more ?



34.1k

<td align="right"><?php echo $this->tag->submitButton("Guardar") ?></td> add a class herre

example in a link to

<?php echo $this->tag->linkTo(array("spm_contacto/index", "<img src='". $this->url->get("img/tolbar/go-back-icon.png"). "'> Volver Atras</img>", 'class' => 'button', 'id' => 'volver')); ?></td>

but in a submmit no function



64.2k
Accepted
answer
edited Nov '15

and if you try

echo $this->tag->submitButton([
    'value' => 'Guardar',
    'class' => 'btn-primary'
 ]);

p.s.

this md editor pisses me off so fking much



34.1k

Thank you, Yes I run the class but not yet the image is not important <td align="right"> <?php echo $this->tag->submitButton([ 'value' => '<img src="'. $this->url->get('img/tolbar/go-back-icon.png"'). '> Volver Atras</img>' , 'class' => 'button info' ]);?></td>