dongshen9058 2018-02-06 03:25
浏览 41

Codeigniter HMVC不加载配置文件

I am trying to load a file from config/common folder which does not load.

I downloaded codeigniter framework and HMVC framework from here and copied to third_party and core folder as per its description and created a config file under application->config->common->test_config.php like below

application
    config
       common
          test_config.php

i have controller (MY_Controller) under core folder and i want to load this file like $this->load->config(common/test); But it does not load test_config.php. Can someone give some clue to load this file.

Regards

Rabinarayan

  • 写回答

2条回答 默认 最新

  • duanbarong4321 2018-02-06 05:39
    关注

    You're using wrong/missing file. Download Codeigniter HMVC from here and Config file placed here


    Structure will be

    application
        config
            config.php
    

    Note: Use PHP 5.6 or higher

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度