分享
  • 收藏
  • 举报
    X
    application\common\controller\admin/S.php里面的165行函数addContent 在哪里?
    • 福建宝岛眼镜莆田黄石分公司 消费2426.51元 2022-02-24 09:27 09:27
    376
    2

    全局搜  只搜到application\common\traits/AddEditList.php 这个函数是添加内容的,

    我希望 在文件cms/admin/sort.php重写函数

    function add() {

            return $this -> addContent();

        }

    先找到addContent()



    第二个问题:



    在文件application\common\controller\admin/S.php里面的代码


     'right_button'=>[
                            [
                                    'title' => '管理内容',
                                    'icon'  => 'fa fa-fw fa-file-text-o',
                                    'href'  => auto_url('content/index', ['fid' => '__id__'])
                            ],
                            [
                                    'title' => '发布内容',
                                    'icon'  => 'glyphicon glyphicon-plus',
                                    'href'  => auto_url('content/add', ['fid' => '__id__'])
                            ],                        
                            ['type'=>'delete'],
                            ['type'=>'edit','class'=>'_pop'],
               
               管理内容  发布内容 判断pid==0就不显示空的||  》0  才显示
               
               
                'icon'  => $rs['pid']>0 ? 'fa fa-fw fa-file-text-o':'',
                                    'href'  => $rs['pid']>0 ? auto_url('content/index', ['fid' => '__id__']):''
                            ],
                            [
                                    'title' => '添加瓶型/标签',
                                    'icon'  => $rs['pid']>0 ? 'glyphicon glyphicon-plus':'',
                                    'href'  => $rs['pid']>0 ? auto_url('content/add', ['fid' => '__id__']):''
    4
    赏礼
    赏钱
    收藏
    点击回复
        全部留言
    • 2
    • 袁冬 普通粉丝 消费:160.85元 2022-02-25 08:22 08:226楼
      最好别改
    0 赏钱 赏礼回复
    • admin 超级管理员 消费:3.03元 2022-02-24 11:41 11:416楼
      \application\common\traits\AddEditList.php
      你改不了的。通用的
    0 赏钱 赏礼回复
    更多回复
        你可能感兴趣的主题
    恢复多功能编辑器
  • 3 1
  • 推荐内容
    扫一扫访问手机版
    请选择要切换的马甲:

     
    网页即时交流
    QQ咨询
    咨询热线
    020-28998648