Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - Version 4.3

[eluser]Avatar[/eluser]
error:
Code:
Message: Undefined property: Home::$uri
when I have $this->uri->segment(anything) in my module, will revert back to 4010 for now

[eluser]Avatar[/eluser]
found another bug, this is in 4.0.10
Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Default_controller::$_me_home

Filename: libraries/modular_extensions.php

Line Number: 42
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Default_controller::$_me_parent

Filename: libraries/modular_extensions.php

Line Number: 43
I receive these error when I've created a module called index and it is the top most module.

[eluser]wiredesignz[/eluser]
Version 4.0.11 is on the wiki

It was updated the first time, stupid wiki :lol:

[eluser]Avatar[/eluser]
in regards to above error, doesn't happen when I call index modules function not name _index or index(can't & won't) _remap doesn't pick it up. you have to call module function directly in ME_4.0.10....I've tried 4.0.11 it complains when I try to load any helper and/or libraries and doesn't pickup on autoloaded libs/helpers etc....

Best Regards, -A

[eluser]wiredesignz[/eluser]
What do you mean doesn't pick up autoloaded helpers, helpers are global functions Tongue

And what is the error whn you try to load things?

I can't fix what I don't know is broken.

[eluser]Avatar[/eluser]
I mean with this code:
Code:
$this->method = ($this->uri->segment(2)!='') ? $this->uri->segment(2) : 'index';
it thinks that uri is a default_controller property and not a global function this being in 4.0.11

[eluser]Avatar[/eluser]
[quote author="yingyes" date="1204870295"]error:
Code:
Message: Undefined property: Home::$uri
when I have $this->uri->segment(anything) in my module, will revert back to 4010 for now[/quote]
oops my mistake not default controller property but a module property
and when I use this scenario with a module named index it complains about $_me_home and $_me_parent
Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Index::$uri

Filename: controllers/index.php

Line Number: 41
I get this error when even loading the helper from the module constructor as well

[eluser]wiredesignz[/eluser]
firstly, index is a reserved word in CodeIgniter don't use it for a filename or you ask for trouble

And if you try to use _remap() in a module it wont work.

[eluser]Avatar[/eluser]
upon removal of the
Code:
$this->uri->segment(anything);
it complains about
Code:
$this->config->item(anything);
every module does this in 4.0.11

[eluser]Avatar[/eluser]
[quote author="wiredesignz" date="1204877774"]firstly, index is a reserved word in CodeIgniter don't use it for a filename or you ask for trouble

And if you try to use _remap() in a module it wont work.[/quote]
ahem, I can use _remap in modules and it works just like it should. I won't use index module as you suggested.




Theme © iAndrew 2016 - Forum software by © MyBB