我正在使用Modular Extensions - Wiredesignz的HMVC
我在核心文件夹上创建My_Controller,在构造函数上,我使用以下代码加载Cache驱动程序:
$this->load->driver('cache', array('adapter' => 'file', 'backup' => 'file'));
在application / modules / tester / models / test_m.php上,我调用此代码:
...
if ( ! $result = $this->cache->get($cache_id))
{
$result = $this->db
->select('slug, IF(`value` = "", `default`, `value`) as `value`', FALSE)
->where($where)
->order_by('module', 'ASC')
->order_by('sort_order', 'ASC')
->get('settings')
->result();
$this->cache->save($cache_id, $result, $this->cache_ttl);
}
return $result;
,错误信息为:
致命错误:未找到“CI_Driver_Library”类 D:\ xampp \ htdocs \ my-app \ system \ libraries \ Cache \ Cache.php在线 27
消息说无法找到CI_Driver_Library。还需要加载什么?或者我的代码有问题吗?