CmlPHP v2.x 开发手册
1.6.7.1 8. 服务 1.6.8 9. 视图 1.6.9 1. 统一的API 1.6.9.1 2. Html模板引擎 1.6.9.2 3. Blade模板引擎 1.6.9.3 10. 锁-并发处理 1.6.10 11. 缓存 1.6.11 12. 语言包 1.6.12 13. 日志 1.6.13 14 // Cml::getContainer()- >singleton('view_blade', \Cml\Service\Blade::class); //blade模板引擎,使用前安装依赖。 composer require linhecheng/cmlphp-ext-blade //Cml::getContainer()->singleton('view_excel' 当然了这边也不仅限于Server你还可以建类型Logic等等 命名空间记得把Server改成 Logic即可 视图 本 节 主 要 介 绍 了 CmlPHP 中 的 视 图 。 包 含 了 Html 、 Blade 、 Json 、 Excel 、 Xml 等视图引擎 统一的API 在CmlPHP中视图包括了 Html 、 Json 、 Xml 、 Excel 、调用方式也非常简单 \Cml\View::getEngine('Html')0 码力 | 251 页 | 973.37 KB | 1 年前3CmlPHP v2.x 开发手册
19 1.6.20 1.6.21 1.6.22 1.6.23 注意事项 同时查询多个库 模型-MongoDB Orm详细Api 服务 视图 统一的API Html模板引擎 Blade模板引擎 锁-并发处理 缓存 语言包 日志 调试 Session自定义保存位置 框架自带的扩展包 插件 使用说明 系统挂载点 常用常量 命令行运行程序 守护工作进程 队列服务 ; // Cml::getContainer()->singleton('view_blade', \Cml\Service\Blade::class); //blade模板引擎,使用前安装 依赖。composer require linhecheng/cmlphp-ext-blade //Cml::getContainer()->singleton('view_excel' 当然了这边也不仅限于Server你还可以建类型Logic等等 命名空间记得 把Server改成Logic即可 视图 本节主要介绍了 CmlPHP 中的视图。包含 了 Html 、 Blade 、 Json 、 Excel 、 Xml 等视图引擎 统一的API 在CmlPHP中视图包括了 Html 、 Json 、 Xml 、 Excel 、调用方 式也非常简单0 码力 | 245 页 | 720.67 KB | 1 年前3Mypy 1.10.0+dev Documentation
a fixed schema, such as {'id': 1, 'items': ['x']}. Here is a typical example: movie = {'name': 'Blade Runner', 'year': 1982} Only a fixed set of string keys is expected ('name' and 'year' above), and import TypedDict Movie = TypedDict('Movie', {'name': str, 'year': int}) movie: Movie = {'name': 'Blade Runner', 'year': 1982} Movie is a TypedDict type with two items: 'name' (with type str) and 'year'0 码力 | 318 页 | 270.84 KB | 1 年前3Mypy 1.8.0 Documentation
a fixed schema, such as {'id': 1, 'items': ['x']}. Here is a typical example: movie = {'name': 'Blade Runner', 'year': 1982} Only a fixed set of string keys is expected ('name' and 'year' above), and import TypedDict Movie = TypedDict('Movie', {'name': str, 'year': int}) movie: Movie = {'name': 'Blade Runner', 'year': 1982} Movie is a TypedDict type with two items: 'name' (with type str) and 'year'0 码力 | 318 页 | 271.55 KB | 1 年前3
共 4 条
- 1