Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何导航到我的列表模板?_Php_Bolt Cms - Fatal编程技术网

Php 如何导航到我的列表模板?

Php 如何导航到我的列表模板?,php,bolt-cms,Php,Bolt Cms,我在my contenttype.yml文件中定义了以下contenttype: #Testimonials testimonials: name: Testimonials singular_name: Testimonial fields: name: type: text class: large position: type: text body: type: textarea height: 150px listing_template: testimonials.twig recor

我在my contenttype.yml文件中定义了以下contenttype:

#Testimonials
testimonials:
name: Testimonials
singular_name: Testimonial
fields:
name:
type: text
class: large
position:
type: text
body:
type: textarea
height: 150px
listing_template: testimonials.twig
record_template: testimonial.twig
现在,如果我导航到
http://localhost:8080/boltCMS/testimonials
我看到了我的记录模板,但如果我导航到
http://localhost:8080/boltCMS/testimonials/1
,我收到一个错误

页面
推荐/1
未找到

那么,如何导航到我的
清单\模板
? 这是我可以在我的
contenttypes.yml中设置和修改的内容吗

如果我将以下内容添加到我的commissional.twig文件中

{{ dump(records) }}
我在浏览器中看到一个空数组


谢谢。

您是否检查过数据库中的“1”是否是您的推荐信中的正确slug