Thank you!
It's correct:
<?php echo $form->submit('myimage.png');?>
But if i want to a label on the button...how is it? If i try:
<?php echo $form->submit('img_tick.png',array ('label' => 'accept'));?
> is the same as
<?php echo $form->submit('myimage.png');?>
How can i write some text if i have an image?
Thank you very much
On Apr 7, 10:35 am, "Bogdan I. Bursuc" <[email protected]>
wrote:
> 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
-~----------~----~----~----~------~----~------~--~---