Revision #6 has been created by kiran sharma on Dec 11, 2012, 2:59:39 PM with the memo:
duplicate lines removed
« previous (#5) next (#7) »
Changes
Title
unchanged
How to upload image(photo), and path entry in database with update functionality
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
Image upload, image upload with database entry, image update, photo upload
Content
changed
[...]
{
$uploadedFile->saveAs(Yii::app()->basePath.'/../banner/'.$model->image);
}
$this->redirect(array('admin'));
}
if($model->save())
$this->redirect(array('admin'));
}
$this->render('update',array(
'model'=>$model,
));[...]