螺栓CMS静态html页面获取404
问题描述:
最近我已经开始使用Bolt CMS。我已经与Angular JS做了一个主题,但我想使用一些静态页面。因为他们在文件中提到https://docs.bolt.cm/3.0/templates/templates-routes#automatic-template-selection
我已经加了我链接到routing.yml
螺栓CMS静态html页面获取404
例子:
oldpages:
path: /applications/forms/chakka/ng/templates/core.html
defaults: { _controller: 'Bolt\Controllers\Frontend::record', 'contenttypeslug': 'page' }
requirements:
slug: '[a-z0-9-_]+'
,但我得到的
例外 - >的Symfony \分量\ HttpKernel \异常\ HttpException
Pa ge页/找不到。
我对螺栓CMS非常陌生。有谁知道为什么?
在此先感谢!
答
我想你想要的是模板绑定:
templatebinding:
path: /mytemplate
defaults: { _controller: 'Bolt\Controllers\Frontend::template', template: 'mytemplate' }
是它的工作原理.....非常感谢亲爱的 – 5cel