Jump to content
  • Hello visitors, welcome to the Hacker World Forum!

    Red Team 1949  (formerly CHT Attack and Defense Team) In this rapidly changing Internet era, we maintain our original intention and create the best community to jointly exchange network technologies. You can obtain hacker attack and defense skills and knowledge in the forum, or you can join our Telegram communication group to discuss and communicate in real time. All kinds of advertisements are prohibited in the forum. Please register as a registered user to check our usage and privacy policy. Thank you for your cooperation.

    TheHackerWorld Official

Fastadmin添加导入功能

 Share


Recommended Posts

一:在控制器中继承import方法
编辑文件:application\admin\controller\xxx.php

public function import(){
return parent::import();

二:在模块对应的JS中添加import_url,如下

import_url: 'class7/import',

549510705.png
其实在新版中,这些都是添加好的。你无需添加。
三:在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')}</a>

效果如下:
2191591661.png
四:导入技巧
按照数据库中的字段或者注释进行导入。
逍遥子大表哥


版权属于:逍遥子大表哥

本文链接:https://blog.bbskali.cn/3476.html

按照知识共享署名-非商业性使用 4.0 国际协议进行许可,转载引用文章应遵循相同协议。

Link to post
Link to comment
Share on other sites

 Share

discussion group

discussion group

    You don't have permission to chat.
    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...