como es la sintaxis de Chtml::LinkButton para agregarle una imagen al boton
<?php echo CHtml::linkbutton("Lov", '#', array('onclick'=>'abrirVentana()','ImageUrl'=>'aflist.gif')); ?>
soy nuevo !!!! perdon por la pregunta
gracias!
[EDIT]
GRACIAS SEBAS Y Polydoro.cardozo
You can attach an ID or CLASS attribute for your button and work it with css
Avisa si usted no habla Inglés
its work !!!! thanks qiang
<?php echo CHtml::link(CHtml::image('images/aflist.gif','Lov'), '#', array('onclick'=>'abrirVentana()')); ?>
Polydoro.cardozo:
but
As I do that? I do not know very well css
a example please
You can use CSS to replace text with an image. If no CSS is enabled no image is displayed, only your text element.
In this url (http://stopdesign.com/archive/2003/03/07/replace-text.html) you have a simple example how to use it.
Hope it helps.
sebas
(Sebathi)
5
un Ejemplo de Css es el siguiente:
.btn_bell{
background-repeat: no-repeat;
padding-left: 20px;
background-image: url('icons/magnifier.png');
min-width:22px;
background-image: url('icons/bell.png');
}
Entonces a cualquier elemento HTML al que le pongas class="btn_bell" va a utilizar esta imágen de costado.
Saludos,