📜  在 codeigniter 中修复本地和服务器的工作 base_url - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:25.530000             🧑  作者: Mango

代码示例1
$config['base_url'] = "http://".$_SERVER['SERVER_NAME']."/project_name/";
this way you config you base_url , then won't worry about in hosting. both works in localhost and server.