D
D
des1roer2015-07-13 07:06:11
Yii
des1roer, 2015-07-13 07:06:11

Yii 1.* button text not showing?

<?php
        if (empty($master))
            $this->widget('zii.widgets.jui.CJuiButton', array(
                'name' => 'b_started',
                'caption' => 'Очистить',
                'htmlOptions' => array(
                    'style' => 'height:32px;',
                    'class' => 'shadowbutton'
                ),
                'onclick' => 'js:function(){document.getElementById("started").value=""; this.blur(); return false;}',
                    )
            );
        ?>

I get an empty button
0KEBo3Y.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
evilelf, 2015-07-13
@des1roer

What's not to like about CHtml::button() or CHtml::submitButton()?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question