The correct way is: echo $form->submit('path_to_image.(jpg/png/etc)');
API link -> http://api.cakephp.org/class/form-helper#method-FormHelpersubmit
> I need help....
>
> I just wanto to show an image inside a button....my code:
>
>
> <?php echo $form->submit('Accept') ?>
>
> I try this code, but is not correcto:
> <?php echo $form->submit('Accept', array('src'=>$this->'webroot.img/
> img_tick.png')); ?>
>
> Any idea?
>
> Thank you very much!
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to