CodeIgniter Forums
[SOLVED]Unable to load helpers in module folder - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: [SOLVED]Unable to load helpers in module folder (/showthread.php?tid=57179)



[SOLVED]Unable to load helpers in module folder - El Forum - 02-22-2013

[eluser]msteudel[/eluser]
So I loaded up a project today that I was working on yesterday and it's suddenly throwing the following error:

Quote:An Error Was Encountered

Unable to load the requested file: helpers/account/ssl_helper.php

I'm sure I accidentally moved something around, can someone look at this file structure and let me know if this looks correct:
https://www.evernote.com/shard/s194/sh/97498dfa-58a5-45a8-a5c6-96f7f94be042/132284f733139da039cb06e5a1ecc421

I checked folder permissions and file permissions, and they are all 755 (I'm on my macbook pro)

This is what my constructor looks like:

Code:
function __construct()
    {
        parent::__construct();

        $this->load->helper(array( 'language', 'url', 'form', 'account/ssl'));
        $this->load->library(array('account/authentication'));
        $this->load->model(array('account/account_model'));
        $this->lang->load(array('general'));
}

I even tried creating an empty helper in the account module folder and load that, but that didn't run.

I don't see any errors in the CI log or the PHP log.

This whole structure is based off of the A3M library.

Anyone run into this before?

MS



[SOLVED]Unable to load helpers in module folder - El Forum - 02-23-2013

[eluser]msteudel[/eluser]
I noticed that it is looking for the helper in the application/helper folder ... how do I get it to look at the modules folder?


[SOLVED]Unable to load helpers in module folder - El Forum - 02-23-2013

[eluser]msteudel[/eluser]
Figured out what it was. I installed Sparks via the one liner command, and it overwrote my Application/core/MY_loader.php which was using the HMVC loader. Here's something I found:

http://getsparks.org/set-up-mx


[SOLVED]Unable to load helpers in module folder - El Forum - 02-23-2013

[eluser]Jan_1[/eluser]
Thanks for sharing!