《Slides Dev Web》02. Introduction aux frameworks PHP
de la logique métier dans nos fichiers de template, car ils sont faits de PHP eux aussi. { # 02-twig/templates/collaborateur.html #} %- extends "base.html" -%} { % block corps -%
The Definitive Guide to Yii 2.0
language, Yii 2.0 is also equipped with official support for two popular template engines: Smarty and Twig. The Prado template engine is no longer supported. To use these template engines, you need to configure #### 3.7. VIEWS
- alternative template engines: allows you to use other template engines, such as Twig $ ^{15} $ , Smarty $ ^{16} $ .
You may also frequently use the following minor yet useful features 3: provides email sending features based on swift�l94.
• yiisoft/yii2-twig $ ^{95} $ : provides a template engine based on Twig $ ^{96} $ .
The following official extensions are for Yii 2.1 and above
0 码力 |
605 页 |
2.47 MB
| 2 年前
3
Yii 2.0 权威指南
;item', ['item' => $item]);
除了使用 PHP 作为主要的模板语言,Yii 2.0 也装备了两种流行模板引擎的官方支持:Smarty 和 Twig。过去的 Prado 模板引擎不再被支持。要使用这些模板引擎,你需要配置 view 应用组件,给它设置 View::$renderers 属性。具体请参阅模板引擎章节。
#### 1.2.9 模型 允许你在Web页面中缓存片段;
- 客户脚本处理: 支持CSS 和 JavaScript 注册和渲染;
- 资源包处理:支持 资源包的注册和渲染;
- 模板引擎: 允许你使用其他模板引擎,如 Twig $ ^{14} $ , Smarty $ ^{15} $ 。
开发Web页面时,也可能频繁使用以下实用的小特性。
## 设置页面标题
每个Web页面应有一个标题,正常情况下标题的标签显示在 - yiisoft/yii2-swift��r $ ^{88} $ :提供了基于 swift��er $ ^{89} $ 的邮件发送功能。
• yiisoft/yii2-twig $ ^{90} $ :提供了一个基于 Twig $ ^{91} $ 的模板引擎。
以下官方扩展适用于 Yii 2.1 及以上版本。您不需要为 Yii 2.0 安装它们,因为它们包含在核心框架中。
• yiisoft/yii2-captcha
0 码力 |
537 页 |
4.66 MB
| 2 年前
3
phpMyAdmin Documentation release 5.0.4
JavaScript core
• Modernize JavaScript library functionality
• Modernize templating and introduce Twig
• William Desportes
☐ Coding style improvements based on PHPStan
• Improve links to external MySQL 2018)
Automated theme generator tool
• Leonardo Strozzi (Google Summer of Code 2018)
• Refactoring Twig templates and other internal code improvements
• Piyush Vijay (Google Summer of Code 2018)
Modernize
0 码力 |
235 页 |
370.30 KB
| 2 年前
3
phpMyAdmin Documentation Release 5.0.5-dev
JavaScript core
• Modernize JavaScript library functionality
• Modernize templating and introduce Twig
• William Desportes
☐ Coding style improvements based on PHPStan
• Improve links to external MySQL 2018)
Automated theme generator tool
• Leonardo Strozzi (Google Summer of Code 2018)
• Refactoring Twig templates and other internal code improvements
• Piyush Vijay (Google Summer of Code 2018)
Modernize
0 码力 |
235 页 |
370.31 KB
| 2 年前
3
phpMyAdmin Documentation release 5.1.4
JavaScript core
- Modernize JavaScript library functionality
- Modernize templating and introduce Twig
- William Desportes
- Coding style improvements based on PHPStan
- Improve links to external Automated theme generator tool
- Leonardo Strozzi (Google Summer of Code 2018)
- Refactoring Twig templates and other internal code improvements
• Piyush Vijay (Google Summer of Code 2018)
– Modernize
0 码力 |
203 页 |
849.36 KB
| 2 年前
3
phpMyAdmin Documentation Release 5.0.5-dev
JavaScript core
- Modernize JavaScript library functionality
- Modernize templating and introduce Twig
- William Desportes
- Coding style improvements based on PHPStan
- Improve links to external Automated theme generator tool
- Leonardo Strozzi (Google Summer of Code 2018)
- Refactoring Twig templates and other internal code improvements
• Piyush Vijay (Google Summer of Code 2018)
– Modernize
0 码力 |
198 页 |
835.53 KB
| 2 年前
3
phpMyAdmin Documentation release 5.2.0
JavaScript core
• Modernize JavaScript library functionality
• Modernize templating and introduce Twig
• William Desportes
☐ Coding style improvements based on PHPStan
• Improve links to external MySQL 2018)
Automated theme generator tool
• Leonardo Strozzi (Google Summer of Code 2018)
• Refactoring Twig templates and other internal code improvements
• Piyush Vijay (Google Summer of Code 2018)
Modernize
0 码力 |
243 页 |
374.89 KB
| 2 年前
3
phpMyAdmin Documentation release 5.0.0
JavaScript core
- Modernize JavaScript library functionality
- Modernize templating and introduce Twig
- William Desportes
- Coding style improvements based on PHPStan
- Improve links to external Automated theme generator tool
- Leonardo Strozzi (Google Summer of Code 2018)
- Refactoring Twig templates and other internal code improvements
• Piyush Vijay (Google Summer of Code 2018)
– Modernize
0 码力 |
198 页 |
829.43 KB
| 2 年前
3
phpMyAdmin Documentation release 5.1.0
JavaScript core
- Modernize JavaScript library functionality
- Modernize templating and introduce Twig
- William Desportes
- Coding style improvements based on PHPStan
- Improve links to external Automated theme generator tool
- Leonardo Strozzi (Google Summer of Code 2018)
- Refactoring Twig templates and other internal code improvements
• Piyush Vijay (Google Summer of Code 2018)
– Modernize
0 码力 |
200 页 |
842.12 KB
| 2 年前
3
共 29 条
- 1
- 2
- 3













