1: Inherit the import method in the controller
Edit file: application\admin\controller\xxx.php
public function import(){
return parent:import(); 2: Add import_url to the corresponding JS of the module, as follows
import_url: 'class7/import',
In fact, in the new version, these are all added well. You don't need to add it.
Three: Add the import button in index.html.
a href='javascript:' class='btn btn-info btn-import {:$auth-check('class7/import')?'':'hide'}' title='{:__('import')}' i class='fa fa-arrow-circle-o-up'/i {:__('import')}/aThe effect is as follows
Four: Importing skills
Import according to fields or comments in the database.
Recommended Comments