Difference between #5 and #6 of
How to upload image(photo), and path entry in database with update functionality

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,
));
[...]
15 0
39 followers
Viewed: 211 233 times
Version: 1.1
Category: Tips
Written by: kiran sharma
Last updated by: Shahcheraghean
Created on: Jul 6, 2012
Last updated: 11 years ago
Update Article

Revisions

View all history