• 注册
  • 查看作者
  • 微擎调用栈(人人商城)微擎调用栈(人人商城)

    问题

    1.uniacid siteinfo.js

    2.manifest.xml


    寻找入口文件的方法,寻找业务逻辑的方法
    $file=D:/WWW/PHPTutorial/WWW/we7/addons/ewei_shopv2/core/web/store/set.php

    $root=D:/WWW/PHPTutorial/WWW/we7/addons/ewei_shopv2/core/web/

    链接

    main(){};
    index.php          require _forward($controller, $action);
    entry.ctrl.php     exit($site->$method());=>Ewei_shopv2_ModuleSite->dowebweb();
    site.php             Ewei_shopv2_ModuleModel->run();
    route.php          include
    set.php               ......
    

    微信小程序 https (postman)(copybash)

    人人商城小程序
    入口文件 根目录/app/ewei_shop.php(独立入口文件)

    if (method_exists($site, $method)) {
            $site->$method();
            die();
        }
    $site(ewei_shopv2ModuleSite)->domobilemobile;
    
    
    

    D:WWWPHPTutorialWWWwe7addonsewei_shopv2pluginappcorepage_mobile.php

    注意plugin app core (小程序php文件)
    pagemobile.php

    注意 r值(路由,菜单管理,自动生成)

    寻找tpl的方法 这是data,编译后的文件,不是模板文件
    string(77) “/www/wwwroot/we7demo/data/tpl/web_v3/default/ewei_shopv2/web/shop/adv.tpl.php”


    转到定义

    
    v2
    $compile = IA_ROOT . '/data/tpl/web/' . $_W['template'] . '/' . $name . '/' . $filename . '.tpl.php';
    
    $source = $moduleroot . '/template/' . $filename . '.html';
    
    v3(一般是)
    $compile = IA_ROOT . '/data/tpl/web_v3/' . $_W['template'] . '/' . $name . '/' . $filename . '.tpl.php';
                    }
    
    $source = $moduleroot . '/template/' . $filename_v3 . '.html';
    

    echo webUrl(‘shop/adv/add’);=>

    链接

    important => do=web&r=shop.adv.add

  • 0
  • 0
  • 0
  • 33
  • 请登录之后再进行评论

    登录

    捐助

    请在小工具里添加二维码

  • 任务
  • 发布
  • 单栏布局 侧栏位置: