我正在尝试使用以下代码访问 codeigniter 中的 third_party
文件夹,但它一直给我一个 404 not found error
$config['theme']['url'] = trim(config_item('base_url'), '/ ') . '/application/third_party/themes/';
我也试过删除application
$config['theme']['url'] = trim(config_item('base_url'), '/ ') . '/third_party/themes/';
我需要做什么才能访问它,以便我可以将我的主题文件夹和文件放在 third_party 文件夹中?
顺便说一下
以上代码在配置文件config/template.php
问题是当在文件夹中调用样式表时,它们被拒绝并返回 404 错误……
最佳答案
尝试,
<?php
APPPATH.'third_party/myfolder/myfile.ext';
?>
关于php - 使用 ci 访问 third_party 文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22947732/