Anytime i attempt to load sparks i cant load the libraries, Its almost as if HMVC has broken the loading of sparks.
An example:
<?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');
}
}
causes: Unable to load the requested class: template
i have attempted following these instructions over @ getsparks.org: http://getsparks.org/set-up-mx
but its still not working, any ideas?
Using:
- HMVC Latest
- CI 2.1.x (tried 1.0 and 1.1)
- Latest Sparks
I have managed to make (assets and template) sparks library to work with HMVC, but be sure that other spark libraries will not work as it should ( since i also tried ion_auth and it didnt work ).
MY_Loaderfile from sparks extend it fromMX_Loadernot fromCI_Loaderlike this:require APPPATH."third_party/MX/Loader.php";you may like this simple code http://s.zah.me/IE0BQ4