include_file()
include_file(string $file) : void
include php 文件,单独的函数是为了避免被包含文件中获取 $this 对象
Parameters
string | $file | 文件名 |
annotation |
cache |
exception |
filter |
pager |
router |
security |
session |
traits |
upload |
view |
Application | 应用程序类,用于启动框架。 |
Config | 配置文件读取工具类 |
Loader | 简单的类加载器,遵循 psr4 规范,仅仅用于加载 app 目录下的类。 |
Logger | 符合 Psr log 规范的 log 类,根据配置会使用 monolog 或者 Psr\Log\NullLogger。 |
Request | 请求工具类,尽可能使用这个类,这个类获取 $_GET $_POST $_REQUEST 数据时会进行 xss过滤 |
Result | 返回值 |
Url | 用来生成 URL 链接 |