eduSOHO 首页模板 全部课程模块代码
2024-09-05 05:27:18
首页模板文件
设置在后台主题-管理-选中网校课程
然后前台调用代码
{% if code != 'course-grid-with-condition-index' %}
{% cache 'jianmo/default/' ~ code 600 %}
{% include 'default/' ~ code ~ '.html.twig' with {config:config, category: category} %}
{% endcache %}
{% else %}
{% include 'default/' ~ code ~ '.html.twig' with {config:config, category: category} %}
{% endif %}
输出course-grid-with-condition-index 名称的twig模板
\app\Resources\views\default\course-grid-with-condition-index.html.twig
其中循环输出课程 加载 'course/widgets/course-grid.html.twig'
位置
app\Resources\views\course\widgets\course-grid.html.twig
其中涉及到的控制器是
\src\AppBundle\Extensions\DataTag\PopularCoursesByCategoryDataTag.php
最新文章
- scikit-learn随机森林调参小结
- Fragment滑动切换简单案例
- iOS Swift-注释与分号
- html5 Worker学习
- SQLite 函数大全
- 在CentOS上安装Git
- null 之AddAll、Add和Boolean
- 设置SVN,Git忽略MAC的.DS_Store文件的方法
- dashboard项目心得:
- Uva 11609 Teams (组合数学)
- 1.Java 加解密技术系列之 BASE64
- 第十一节,利用yolov3训练自己的数据集
- iOS 封装SDK以及封装时bundle文件的处理
- python发送smtp 邮件 图片
- 未来-区块链-Micron:区块链永远不会忘记:内存对这项革命性技术的推动作用
- metools,个人工具站点分享
- [剑指Offer]11-旋转数组的最小数字(二分查找)
- webpack(3)--Output
- 开源ITIL管理软件iTop 2.5-2.6安装
- <;bean>; 中配置详解 <;/bean>;
热门文章
- 03_mysql-python模块, linux环境下python2,python3的
- 4、获取Class中的构造函数
- 1、Spring Boot 2.x 简介
- python第三方库的更新和安装指定版本
- PHP mysqli_dump_debug_info() 函数
- npm源管理
- Laravel API Errors and Exceptions: How to Return Responses
- strconv
- 1-4CMYK色彩模式
- JAVA RPC (九) netty服务端解析