我得到了 custom.php (在配置文件夹内),代码如下
$config['myurl'] = 'somesite.com';
我得到了 config.php(标准 CI),我想使用 custom.php 中的值设置 base_url,如下所示
$config['base_url'] = $this->config->item('myurl');
这样做我得到了错误
Using $this when not in object context in /Volumes/HD 2/work/vnl/app/config/config.php on line 18
为此目的正确的代码是什么?