php - Fatal error instead of 404 page -


i've followed the guide in documentation on making resource contenttype , using 404 page, instead of page see following fatal error:

class: symfony\component\httpkernel\exception\httpexception message: page not found, , there no 'notfound' set in 'config.yml'. sorry that. code: 0 

it's strange, because notfound in config.yml set to:

notfound: resources/not-found 

any idea be? here 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 

and resource.twig:

{{ record.title }} 

unique alias of 404 resource created /resources/not-found

ensure resources record "published".

…if had $1 every time had hit 1 result, it'd holiday time.


Comments