<?php
// Path to the front controller (this file)
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);
// Ensure the current directory is pointing to the front controller's directory
chdir(__DIR__);
// Load our paths config file
// This is the line that might need to be changed, depending on your folder structure.
$pathsConfig = FCPATH . 'app/Config/Paths.php';
// ^^^ Change this if you move your application folder
require realpath($pathsConfig) ?: $pathsConfig;
$paths = new Config\Paths();
// Location of the framework bootstrap file.
$bootstrap = rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php';
$app = require realpath($bootstrap) ?: $bootstrap;
$app->run();
4条答案
按热度按时间daolsyd01#
发生这种情况的原因如下。
$应用程序文件夹。
$system_path = 'system'; $application_folder = 'application';
e5njpo682#
指向你的系统文件夹正确,如果它是不同的目录调整index.php
例如,
zfycwa2u3#
发生这种情况的原因如下。
1.开放式配置
1.和config.php的配置文件
1.搜索$config ['索引页']='';
1.最后一个搜索输入index.php例如$config ['index_page']= 'index.php';
zsbz8rwp4#
如果您使用的是CI4,请在项目主目录中创建index.php: