微赞模块的加载流程

简介: http://wz.xxxxx.com/app/index.php?i=3&c=entry&do=register&m=tb_service c=entry的意思,代表的是去加载addons下的模块,代码的跳转在app/index.php $init = IA_ROOT . "/app/source/{$controller}/__init.php";if

http://wz.xxxxx.com/app/index.php?i=3&c=entry&do=register&m=tb_service

c=entry的意思,代表的是去加载addons下的模块,代码的跳转在app/index.php

$init = IA_ROOT . "/app/source/{$controller}/__init.php";
if (is_file($init))
{
    require $init;;
}

在这里跳转到了/app/source/entry/_init.php中了,在这个文件中,首先检查数据里是不是有这个模块的记录,如果有的话就会调用这个模块的方法do参数传递过来的方法


$site = WeUtility::createModuleSite($entry['module']);
if (!is_error($site))
{
    $method = 'doMobile' . ucfirst($entry['do']);
    exit($site->$method());
}
exit();


360大SB

相关文章
|
1月前
|
Python
理解模块功能
理解模块功能
26 8
|
4月前
|
小程序
小程序的分包加载具体流程
小程序的分包加载具体流程
170 0
|
9月前
|
存储 Linux C语言
模块的加载过程一
模块的加载过程一
99 0
|
9月前
|
Linux
模块的加载过程二(上)
模块的加载过程二
65 0
|
9月前
|
Linux
模块的加载过程四
模块的加载过程四
82 0
|
9月前
|
Linux 索引
模块的加载过程三
模块的加载过程三
54 0
|
9月前
|
编译器
模块的加载过程三(下)
模块的加载过程三(下)
96 0
|
9月前
|
程序员 Linux
模块的加载过程二(下)
模块的加载过程二(下)
92 0
|
10月前
|
JavaScript 开发者
Vite 在运行过程中是如何发现新增依赖的?
Vite 在运行过程中是如何发现新增依赖的?
181 0
|
Java 数据库
项目的模块以及每一个模块的作用
项目的模块以及每一个模块的作用
项目的模块以及每一个模块的作用