public function actionCreate() {
$model = new MyGallery;
if (isset($_POST['MyGallery'])) {
$model->attributes = $_POST['MyGallery'];
if(!empty($_FILES)){
move_uploaded_file($_FILES['file']['tmp_name'],
Yii::app()->request->baseUrl . 'images/upload/' . '13' . $_FILES['file']['name']);
$model->img_url = $_FILES['file']['name'];
};
if ($model->save())
$this->redirect(array('view', 'id' => $model->id));
}
$this->render('create', array(
'model' => $model,
));
}
<div <? if($myrow['column']==0) echo "style='display:block;'"; ?> >
</div>