Multiple CJUIbuttons

Hi all,

There’s probably an easy solution, but I can’t figure it out:

I want to place 2 CJuibuttons in 1 view, but I can’t get the second one to work. The second one just displays a link, And yes, I have tried reversing the buttons, and still only the first one works.

I’ve checked the source, and only for the first button the following HTML is generated:

<span class="ui-button-text">Test</span>

<span class="ui-button-icon-secondary ui-icon ui-icon-extlink"></span>

My code:


<p>


  <?php

    $this->widget('zii.widgets.jui.CJuiButton', array(

        'buttonType' => 'link',

        'name' => 'btnGo',

        'caption' => 'Test',

        'options' => array('icons' => 'js:{secondary:"ui-icon-extlink"}'),

        'url' => array('test/create'),

    ));

    ?>


</p>

<p>

    <?php

    $this->widget('zii.widgets.jui.CJuiButton', array(

        'buttonType' => 'link',

        'name' => 'btnGo',

        'caption' => 'Test2',

        'options' => array('icons' => 'js:{secondary:"ui-icon-extlink"}'),

        'url' => array('test2/create'),

    ));

    ?>

</p>




Any ideas?

Hi !

You should not use the same name (btnGo) for those buttons

Thnx, that worked!