Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules Helper problem #44

Closed
Exelord opened this issue Jan 31, 2015 · 2 comments
Closed

Modules Helper problem #44

Exelord opened this issue Jan 31, 2015 · 2 comments

Comments

@Exelord
Copy link
Contributor

Exelord commented Jan 31, 2015

Hi Ivan,
I found a problem with helpers in module folder.

I create structure like that:
-mymodule
--controllers
--helpers
---MY_new_helper.php

and when i try to load Ive got:
$this->load->helper('my_new_helper');

Unable to load the requested file: helpers/my_new_helper.php

I tested it with many combination of name of the helper and adding module name to the name like:
$this->load->helper('mymodule/my_new_helper');

when I load helper in module from APP folder everything works OK
-appfolder
--helpers
---MY_new_helper.php

$this->load->helper('new_helper');

Could you look at this?

@ivantcholakov
Copy link
Owner

I did a change that probably has not been implemented in the original HMVC code. Anyway, If you have your structure:

mymodule
--controllers
--helpers
---MY_new_helper.php

you may use

$this->load->helper('new');

or $this->load->helper('MY_new'); , but the first suggestion is better.

@Exelord
Copy link
Contributor Author

Exelord commented Jan 31, 2015

Yeah :D Now its works perfectly! I tested and viola. Helper is loaded from module :)
Great job!

@Exelord Exelord closed this as completed Jan 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants