beginWidget('CActiveForm', array(
'id'=>'add-post-form-addPost-form',
// Please note: When you enable ajax validation, make sure the corresponding
// controller action is handling ajax validation correctly.
// See class documentation of CActiveForm for details on this,
// you need to use the performAjaxValidation()-method described there.
'enableAjaxValidation'=>false,
'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>
=Yii::t('app', 'Fields with {*} are required.', array('{*}'=>'*'))?>
errorSummary($model, Yii::t('app', 'Please, fix following errors:')); ?>