Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/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 我无法在Drupal主题中显示标题区域_Php_Drupal_Drupal Theming - Fatal编程技术网

Php 我无法在Drupal主题中显示标题区域

Php 我无法在Drupal主题中显示标题区域,php,drupal,drupal-theming,Php,Drupal,Drupal Theming,我没有看到drupal主题中标题区域的内容。在page.tpl.php中使用以下代码是最佳做法吗 <?php include('region--header.tpl.php'); ?> 将基本region.tpl.php文件复制到主题的templates文件夹中。 region--header.tpl.php文件和region.tpl.php文件应放在templates文件夹中 如果我很清楚的话,这个地区至少也需要显示一个区块,不是吗? <?php if ($page['he

我没有看到drupal主题中标题区域的内容。在page.tpl.php中使用以下代码是最佳做法吗

<?php include('region--header.tpl.php'); ?>

将基本
region.tpl.php
文件复制到主题的templates文件夹中。
region--header.tpl.php
文件和
region.tpl.php
文件应放在templates文件夹中

如果我很清楚的话,这个地区至少也需要显示一个区块,不是吗?
<?php if ($page['header']): ?>
  <?php print render($page['header']); ?>
<?php endif; ?>
regions[header] = Header