Codeigniter 访问代码点火器中的内部文件
我是CodeIgniter的新手,我想要的是获取内部配置文件的文件路径,我的database.php位于./application/config/database.php中。如何访问我的文件?我正在使用file helper,但找不到必须在参数上提交的路径。如果打开index.php,您将看到定义了APPPATH和BASEPATH 所以你想要像这样的东西Codeigniter 访问代码点火器中的内部文件,codeigniter,path,Codeigniter,Path,我是CodeIgniter的新手,我想要的是获取内部配置文件的文件路径,我的database.php位于./application/config/database.php中。如何访问我的文件?我正在使用file helper,但找不到必须在参数上提交的路径。如果打开index.php,您将看到定义了APPPATH和BASEPATH 所以你想要像这样的东西 $path = APPPATH . 'config/database.php'; 使用$path=APPPATH.config/databa
$path = APPPATH . 'config/database.php';
使用
$path=APPPATH.config/database.php'代码>