我在做一個資源的contentType和使用它的404頁其次the guide in the documentation,但不是我看到下面的致命錯誤的頁面:致命錯誤,而不是404頁
Class: Symfony\Component\HttpKernel\Exception\HttpException
Message: The page could not be found, and there is no 'notfound' set in 'config.yml'. Sorry about that.
Code: 0
這很奇怪,因爲not found in config.yml設置爲:
notfound: resources/not-found
任何想法它可能是什麼?這裏是的contentType:
resources:
name: Resources
singular_name: Resource
fields:
title:
type: text
class: large
required: true
slug:
type: slug
uses: title
html:
type: textarea
height: 150px
default_status: published
record_template: resource.twig
searchable: false
viewless: true
而且resource.twig:
{{ record.title }}
我創建的/資源/不被發現
它已出版。 – Pharetra