Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gevorgmansuryan authored Mar 16, 2018
1 parent 619af34 commit 4249588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Will return array of populated AR models
- Define Fields

```php
uploadedFile = \yii\web\UploadedFile::getInstanceByName('file');
$uploadedFile = \yii\web\UploadedFile::getInstanceByName('file');

$importer = new \Gevman\Yii2Excel\Importer([
'filePath' => $uploadedFile->tempName,
Expand Down Expand Up @@ -132,4 +132,4 @@ $importer->save();
foreach($importer->getErrors() as $rowNumber => $errors) {
echo "$rowNumber errors <br>" . implode('<br>', $errors);
}
```
```

0 comments on commit 4249588

Please sign in to comment.