Yii Framework Forum: Chtml::ajaxbutton To Bootstrap Button - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Chtml::ajaxbutton To Bootstrap Button Rate Topic: -----

#1 User is offline   swampone 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 40
  • Joined: 28-March 11

Posted 20 January 2013 - 08:48 PM

This is my button
<?php echo CHtml::ajaxButton ("Update data",
                              CController::createUrl('profile/ChangeLine'),
                              array('update' => '#line'));
                    ?>

Im trying to use yii bootstsrap's button to change the appearance. There is a option to change the button to a ajaxButton but i cant find any documentation on how to do so.
0

#2 User is offline   swampone 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 40
  • Joined: 28-March 11

Posted 20 January 2013 - 10:31 PM

was able to find a solution. I used...
<?php echo CHtml::ajaxButton ("In/Out Line",
                              CController::createUrl('profile/ChangeLine'),
                              array('update' => '#line'),
                              array('class' => 'btn btn-block btn-primary')
                        );
                    ?>

0

#3 User is offline   sajidtoor 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 27-December 12

Posted 21 January 2013 - 12:21 AM

Hello guys.
how are you all?i am newbie here.i like this forum and want to say welcome to all.
hope so you enjoy your stay here.All the best...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users