Difference between #12 and #13 of
How to upload a file using a model

Revision #13 has been created by Kostas Apazidis (KonApaz) on Dec 7, 2013, 9:03:29 AM with the memo:

add a submit button to post the form
« previous (#12) next (#14) »

Changes

Title unchanged

How to upload a file using a model

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

File upload

Content changed

[...]
// ...
echo $form->labelEx($model, 'image');
echo $form->fileField($model, 'image');
echo $form->error($model, 'image');
// ...
echo CHtml::submitButton('Submit');
 
$this->endWidget();
```
[...]
<?php echo CHtml::activeFileField($model, 'image'); ?>
...
<?php echo CHtml::submitButton('Submit'); ?>
 
<?php echo CHtml::endForm(); ?>
```

### Links

* [Russian Version](http://dbhelp.ru/form-file-upload/page/)
[...]
66 4
64 followers
Viewed: 519 740 times
Version: 1.1
Category: Tutorials
Written by: qiang
Last updated by: samdark
Created on: Feb 4, 2009
Last updated: 9 years ago
Update Article

Revisions

View all history