Yii2 Tips 27 : Import Data from Excel

1. Install yii2 export

2. Excel file , i.e (take note on the baseRow and baseColumn) :

yii2 tips excel

3. Create table and the model

yii2 tips excel

4. Put actionImport (or whatever the name is), to your controller

5. Create import.php

yii2 tips excel

19 thoughts on “Yii2 Tips 27 : Import Data from Excel

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.