Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7868483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:00:53+00:00 2026-06-03T01:00:53+00:00

Anytime i attempt to load sparks i cant load the libraries, Its almost as

  • 0

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:00:55+00:00Added an answer on June 3, 2026 at 1:00 am

    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 ).

    1. first of all you have to have a fresh HMVC installation then you
    2. will have to install sparks but dont overwrite the MX loader nor the MX module files
    3. get the MY_Loader file from sparks extend it from MX_Loader not from CI_Loader like this:

    require APPPATH."third_party/MX/Loader.php";

    class MY_Loader extends MX_Loader {
    /*the MY_Loader code from getsparks.org*/}
    

    you may like this simple code http://s.zah.me/IE0BQ4

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Somehow Visual Studio search has stopped working for me. Anytime I search Entire Solution
How to manipulate values that are first generated by AnyTime Picker? For example, I
I get an error anytime I try to query a phrase that has a
Anytime I call cvNamedWindow I get a segmentation fault and I don't know why
So anytime someone visits this page: http://www.site.com/page/image_(.*).png They get redirected to the cdn url,
I've been having this problem where anytime I send a 0xA through an RS-232
01.02.2010 0:00:00 -> 01.02.2010 anytime 01.02.2010 0:00:00 -> 01.02.2010 0:any minutes and seconds so
I am trying to write something that will fire an event anytime the hard
I have the following function that is supposed to trigger anytime one of the
As I understand, OSGi services can be unregistered anytime, including when they are in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.