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'), )); ?>

Fields with * are required.

errorSummary($model); ?>
labelEx($model,'title'); ?> textField($model,'title'); ?> error($model,'title'); ?>
labelEx($model,'text'); ?> textArea($model,'text'); ?> error($model,'text'); ?>
labelEx($model,'image'); ?> fileField($model,'image'); ?> error($model,'image'); ?>
endWidget(); ?>