2016-06-28 214 views
1

最近我已經開始使用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非常陌生。有誰知道爲什麼?

在此先感謝!

回答

0

我想你想要的是模板綁定:

templatebinding: 
    path: /mytemplate 
    defaults: { _controller: 'Bolt\Controllers\Frontend::template', template: 'mytemplate' } 
+0

是它的工作原理.....非常感謝親愛的 – 5cel