首页模板文件

设置在后台主题-管理-选中网校课程

然后前台调用代码

{% 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

最新文章

  1. scikit-learn随机森林调参小结
  2. Fragment滑动切换简单案例
  3. iOS Swift-注释与分号
  4. html5 Worker学习
  5. SQLite 函数大全
  6. 在CentOS上安装Git
  7. null 之AddAll、Add和Boolean
  8. 设置SVN,Git忽略MAC的.DS_Store文件的方法
  9. dashboard项目心得:
  10. Uva 11609 Teams (组合数学)
  11. 1.Java 加解密技术系列之 BASE64
  12. 第十一节,利用yolov3训练自己的数据集
  13. iOS 封装SDK以及封装时bundle文件的处理
  14. python发送smtp 邮件 图片
  15. 未来-区块链-Micron:区块链永远不会忘记:内存对这项革命性技术的推动作用
  16. metools,个人工具站点分享
  17. [剑指Offer]11-旋转数组的最小数字(二分查找)
  18. webpack(3)--Output
  19. 开源ITIL管理软件iTop 2.5-2.6安装
  20. <bean> 中配置详解 </bean>

热门文章

  1. 03_mysql-python模块, linux环境下python2,python3的
  2. 4、获取Class中的构造函数
  3. 1、Spring Boot 2.x 简介
  4. python第三方库的更新和安装指定版本
  5. PHP mysqli_dump_debug_info() 函数
  6. npm源管理
  7. Laravel API Errors and Exceptions: How to Return Responses
  8. strconv
  9. 1-4CMYK色彩模式
  10. JAVA RPC (九) netty服务端解析