我正在尝试在我的 install.php 文件中使用 Kohana 类,该文件位于根目录中,但是当我尝试使用它时,我看到了这个:
安装.php
require_once ("system/classes/Kohana.php");
$kohana = new Kohana();
// out: Fatal error: Class 'Kohana_Core' not found in \system\classes\Kohana.php on line 3
我正在尝试在我的 install.php 文件中使用 Kohana 类,该文件位于根目录中,但是当我尝试使用它时,我看到了这个:
安装.php
require_once ("system/classes/Kohana.php");
$kohana = new Kohana();
// out: Fatal error: Class 'Kohana_Core' not found in \system\classes\Kohana.php on line 3
我很困惑你为什么要使用这个文件来做任何事情?在您确认您已按照应有的方式设置了 Kohana 后,必须重命名或删除文件 install.php。
我不知道这是否是导致特定错误的原因,但您仍然应该避免使用 install.php 进行任何操作。请阅读文档。
Did you move any files from the normal Kohana structure after download? Is the install.php file in the same location as the /system/ folder of your Kohana version or you mean that your install.php is outside the Kohana root?
What do you intend to do with the install.php? Are you adding your own code for different checks?