Skip to content

Commit

Permalink
Fix readme: Add checkjs hidden field
Browse files Browse the repository at this point in the history
  • Loading branch information
psrustik committed Jun 17, 2014
1 parent e6e1f50 commit feef627
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ class ContactForm extends CFormModel
...
}
~~~
5) In form view add special hidden element
~~~
<?php $form=$this->beginWidget('CActiveForm', array(
...
<?php echo Yii::app()->cleanTalk->checkJsHiddenField()?>
...
<?php echo CHtml::submitButton('Submit'); ?>
...
<?php $this->endWidget(); ?>
~~~

##License
GNU General Public License
Expand Down

0 comments on commit feef627

Please sign in to comment.