end(array('type'=>'submit',*'class'=>'button'*,'value'=>'Post
Review','label'=>'Post Review'));?>
for example u add the image to css code
the *button** *css* *cla*ss u add the background image
this onway
*On Tue, Apr 7, 2009 at 9:26 PM, kryska wrote:
>
> Thank you!
>
> It's correct:
>
> submit('m
Thank you!
It's correct:
submit('myimage.png');?>
But if i want to a label on the button...how is it? If i try:
submit('img_tick.png',array ('label' => 'accept'));?
> is the same as
submit('myimage.png');?>
How can i write some text if i have an image?
Thank you very much
On Apr 7, 10:35 a
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 buttonmy code:
>
>
> submit('Accept') ?>
>
> I try this code, but is not correcto:
>
I need help
I just wanto to show an image inside a buttonmy code:
submit('Accept') ?>
I try this code, but is not correcto:
submit('Accept', array('src'=>$this->'webroot.img/
img_tick.png')); ?>
Any idea?
Thank you very much!
--~--~-~--~~~---~--~~
You