每当我尝试加载火花时,我都无法加载库,就好像 HMVC 已经破坏了火花的加载。
一个例子:
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Index extends MX_Controller {
function __construct(){
parent::__construct();
$this->load->spark('template/1.9.0');
$this->load->library('template');
}
public function index(){
$this->template
->title('TSET123')
->build('index/index');
}
}
原因: Unable to load the requested class: template
我已尝试通过 @getsparks.org 遵循这些说明:http: //getsparks.org/set-up-mx
但它仍然无法正常工作,有什么想法吗?
使用:
- HMVC 最新
- CI 2.1.x(尝试 1.0 和 1.1)
- 最新火花