Yii Framework Forum: On Button Event - Yii Framework Forum

Jump to content

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

On Button Event suggest code for exitcute the dialog box Rate Topic: -----

#1 User is offline   khajaamin 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 03-December 12

Posted 21 December 2012 - 12:12 AM

This is code for exicuting message() method from dialog class how can i use the code for executing this method




<?php CHtml::Button('Upload', array('submit' =>array(Dialog::message('Upload resume', $message))));?>
0

#2 User is offline   LastDay 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 06-March 11
  • Location:Russia

Posted 21 December 2012 - 08:32 AM

You forgot echoing of CHtml::Button:


<?php echo CHtml::Button('Upload', array('submit' =>array(Dialog::message('Upload resume', $message))));?> 


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