0

我在 Mac 上使用 Dreamweaver,并尝试在保存内容时打开的 Dreamweaver 对话框中将文件另存为“template.class.php”。然后在我的脚本中,我使用“include”构造来包含文件,如下所示:

require_once( $object . '.class.php' );

但我收到一条错误消息

"Fatal error: Class 'template' not found in /Applications/XAMPP/xamppfiles/htdocs/xampp/web_development/MVC/registry/registry.class.php on line 28"

所以我在windows上使用notepad++来解决这个问题,即文件需要命名为“template.class”,同时仍然保留它是一个php文件而不是Java类文件的事实。我想知道如何在 Mac 上做同样的事情。

任何答案将不胜感激!

4

0 回答 0