Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/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 在firesale中显示类别_Php_Codeigniter_Pyrocms - Fatal编程技术网

Php 在firesale中显示类别

Php 在firesale中显示类别,php,codeigniter,pyrocms,Php,Codeigniter,Pyrocms,我使用firesale类别显示所有类别。这是我的密码 {{ firesale:categories}} {{ entries}} <p><a href="{{ firesale:url route='category' id=id }}">{{ title }}</a></p> {{ /entries}} {{ /firesale:categories }} {{firesale:

我使用firesale类别显示所有类别。这是我的密码

{{ firesale:categories}}
        {{ entries}}
           <p><a href="{{ firesale:url route='category' id=id }}">{{ title }}</a></p>
        {{ /entries}}    
  {{ /firesale:categories }}
{{firesale:categories}
{{entries}}

{{/entries} {{/firesale:categories}
它按预期显示类别。但我试图查看类别的数组结构。(从各个类别中获取id、父项、slug等)。。我已经尝试了以下代码,但它不起作用

  {{ firesale:categories}}
       <?php 
            echo "<pre>";
            print_r($entries);
        ?>
    {{ /firesale:categories }}
{{firesale:categories}
{{/firesale:categories}

如何查看类别的数组结构?

您可以尝试在firesale/plugin.php中返回之前转储条目