du94414 2019-06-26 09:39
浏览 186

如何在Codeigniter配置文件中使用环境变量?

How can I use Environment variables to set up the encryption key in the config file for codeigniter?

I have set up a dotenv library and environment variables work everywhere else apart from the config file. I'm getting an empyty string.

$config['encryption_key'] = getenv("APP_key");

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 opencv 无法读取视频
    • ¥15 用matlab 实现通信仿真
    • ¥15 按键修改电子时钟,C51单片机
    • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
    • ¥20 5037端口被adb自己占了
    • ¥15 python:excel数据写入多个对应word文档
    • ¥60 全一数分解素因子和素数循环节位数
    • ¥15 ffmpeg如何安装到虚拟环境
    • ¥188 寻找能做王者评分提取的
    • ¥15 matlab用simulink求解一个二阶微分方程,要求截图