<?php echo $form->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 <[email protected]> wrote:
>
> 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
-~----------~----~----~----~------~----~------~--~---