-1

编辑:现在有效,感谢您的回答:)

我是第一次使用 ProcessWire,我正在学习一个教程,并且显示了一个解析错误。我已经回顾了教程,我的代码与教程中的代码匹配,但是教程中的任何地方都没有提到这个错误。

我的代码:

<?php require_once(./includes/functions.inc); ?>

错误信息是这样的:

解析错误:语法错误,意外的“。” (C:\xampp\htdocs\bedlingtonfc\processwire-master\site\templates\includes\head.inc 的第 1 行)

帮助表示赞赏:)

4

3 回答 3

1
<?php require_once("./includes/functions.inc"); ?>

字符串需要被引用。

于 2018-06-08T15:20:53.023 回答
1

应该是字符串

require_once('./includes/functions.inc');
于 2018-06-08T15:20:53.690 回答
1

您缺少行情

<?php require_once("./includes/functions.inc"); ?>

http://php.net/manual/en/function.require-once.php

于 2018-06-08T15:25:12.870 回答