Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC version 5.4
#21

[eluser]DBPolito[/eluser]
Hello,

I've found a bug with languague autoloader. Sorry but i don't have the details here, but will be nice if you take a look on it. I just remember that have a wrong param on calling the CI::lang->language(), i've fixed the param but still not working.

Congratulations, you are doing a great work.

Regards
#22

[eluser]wiredesignz[/eluser]
[quote author="DBPolito" date="1301126709"]Hello,

I've found a bug with languague autoloader. Sorry but i don't have the details here, but will be nice if you take a look on it. I just remember that have a wrong param on calling the CI::lang->language(), i've fixed the param but still not working.

...[/quote]
There is no language method in the CI_Lang class.
#23

[eluser]RGM_[/eluser]
Sorry if this is a case of me needing to read more.. but:

Trying to autoload['language'] = array('sa');

ends up with the error message: Unable to load the requested language file: language/english/Array_lang.php

Autoloaded helpers and libraries are fine though.

Changing the controller from MY_ to CI_ makes it work..


edit: Made a "MY_controller extends MX controller" with $this->lang-load() in its __construct() and seems to work fine.

In the controller I'm using "home extends MY_controller" I can get a lang->line() out of it.
#24

[eluser]wiredesignz[/eluser]
@RGM_, Autoload language is working fine here.
#25

[eluser]DBPolito[/eluser]
I think this problem happening only at Reactor Version.
#26

[eluser]RGM_[/eluser]
Updated to 2.0.1 from codeigniter.com it still comes up with array.

Using wrong version?
#27

[eluser]libeco[/eluser]
[quote author="RGM_" date="1301301028"]...
Trying to autoload['language'] = array('sa');

ends up with the error message: Unable to load the requested language file: language/english/Array_lang.php

Autoloaded helpers and libraries are fine though.

...

edit: Made a "MY_controller extends MX controller" with $this->lang-load() in its __construct() and seems to work fine...[/quote]

I'm having this problem too, or at least a similar one. I'm using CI 2 (not Reactor). When trying to use the regular autoload for loading a language, I am presented with the same error as above. The autoload files in the modules directories are working fine for me.

When I remove the language load from the original autoload en place a $this->lang->load() in the constructor of my MY_Controller, everything work fine.
#28

[eluser]theprodigy[/eluser]
First off, thanks for MX. Your hard work is appreciated.

I have a quick question. Can Modules contain more than 1 controller each? I tried to add a second controller to a module and it doesn't seem to be working.

I first created a 'movies' module, and inside it's controllers directory, I put in a 'movies' controller. I went to
Code:
http://my.domain.tld/movies
and everything worked fine. But then I added a 'actors' controller, and tried to go to
Code:
http://my.domain.tld/movies/actors
it didn't work. I then tried to go to
Code:
http://my.domain.tld/movies/actors/index
and it didn't work either. When I added a 'actors' method to the 'movies' controller, that worked without a problem.

My setup is:
Quote:app
--/controllers
--/core
--/--/MY_Controller.php (extends MX_Controller)
--/[other stuff]
--/models
--/modules
--/--/movies
--/--/--/controllers
--/--/--/--/movies.php (extends MY_Controller)
--/--/--/--/actors.php (extends MY_Controller)
--/--/--/models
--/--/--/views
--/views

Am I doing something wrong?

EDIT: I forgot to mention that I am using MX 5.4, alongside DMZ 1.8 (in case that helps any)
#29

[eluser]theprodigy[/eluser]
disregard previous post. I'm an idiot :-P
#30

[eluser]darkhouse[/eluser]
Hey wiredesignz. First, this is great work, I've been using your system for a long time, maybe a couple years, I've got it integrated into my CMS and it works b.e.a.utifully... however...

I just ran into an issue. My CMS is sort of a fallback system so that basically if the router doesn't find a controller for the current URI, then it checks the CMS, and if it finds a page, it loads it, otherwise it returns a 404. The issue is, I have a page in the CMS with the slug 'blog', and then a module named 'blog'. The blog page uses the blog module, naturally, but since the CMS is checked AFTER the router does it's thing, it's trying to load the content from the blog module. My question is, is there a way to disable the code that loads a module based on the URI, without breaking anything? Essentially for this project, I never want it to load a module right from the URI, I want it to either use an existing controller, or use the CMS.

Thanks!

Edit: I know the easiest thing to do would be either rename the page slug (which I've done in the mean time) or rename the module, but the issue is it's possible with my system that someone could name something the same as a module, and then break their site. I just want to try and make it so that isn't possible.




Theme © iAndrew 2016 - Forum software by © MyBB