我正在codeigniter中編寫我的config.php
文件中的自定義配置,但是從開發到生產,有很多工作將我的自定義配置重命名爲反映新的域。避免在config.php中重複base_url
例如
$config['base_url'] = 'http://localhost/_init/';
$config['media_player_js'] = 'http://localhost/assets/';
$config['media_player_css'] = 'http://localhost/_init/';
$config['videos'] = 'http://localhost/_init/';
$config['audios'] = 'http://localhost/_init/';
我不得不重複基礎URL 4個times.Is $config['base_url']
變量可用於config.php
文件裏使用?
negetive point ??? !!!指定原因plz ...因爲在這種格式下,我已經完成了近10個codeigniter項目... – ripa
誰做出了負面評論plz,否則我會問的主持人stackoverflow ... – ripa