We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

PUT CLASS A TYPE SUBMMIT;

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



85.5k

at what compunent ?

are you building a form or what ?



43.9k

Hi,

could you explain a little bit more ?



81.2k

<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



85.5k
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



81.2k

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>