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

[eluser]Avatar[/eluser]
Smile Thank you, that has resolved this painful problem. I will keep you informed.

yes, true about error

[eluser]wiredesignz[/eluser]
I'm not sure the program is the pain Tongue

This is a community type project I need your feedback to make it work in all circumstances. Thanks for your time yingyes.

[eluser]Avatar[/eluser]
your welcome wiredesignz,
Maybe I'm the painful one, sorry about that if I am.
about the remap inside modules: I can access module functions prefixed with a _ in the url. in CI user guide it says that all functions prefixed with _ are private and will not be accessible by public and are private functions. What is your thoughts on this?

I want it to be nice as much as you do buddy

[eluser]wiredesignz[/eluser]
I agree with that. Private functions and variables should be preceeded with underscore. Wether or not you use them is up to you, and probably the PHP version you use.

[eluser]Avatar[/eluser]
can we add this functionality for security reason? so a module can have _remap to determine what happens and if no remap then do normal how CI does it (display 404 if not function exists) or with remap map to proper location, etc.etc.etc.

[eluser]wiredesignz[/eluser]
There is an _error function in each module class, override it and use it to show_404()

[eluser]Avatar[/eluser]
another bug, not sure about this one so much, please see code below followed by error:
Code:
<?php

class Test extends Module
{
    function Test()
    {
        parent::Module();
    $this->init();
    }
    function init()
    {
        echo $this->uri->segment(2);
    }
}
above works, whereas below doesn't. Notice the underscore:
Code:
<?php

class Test extends Module
{
    function Test()
    {
        parent::Module();
    $this->_init();
    }
    function _init()
    {
        echo $this->uri->segment(2);
    }
}
this gives me that uri error from before, error is below:
Code:
Message: Undefined property: Test::$uri

Filename: controllers/test.php

Line Number: 14

Fatal error: Call to a member function segment() on a non-object
your welcome wire and thank you. I mean alot, alot alot.

[eluser]wiredesignz[/eluser]
Version 4.0.12 is available on the wiki
Adjusted library loader. Thanks yingyes Wink

[eluser]wiredesignz[/eluser]
The module class also has _init() function, so you have overridden its setup

I will change this Version 4.0.13, in the meanitme don't use _init()

[eluser]Avatar[/eluser]
ok. Didn't think about that. Thank you very much. I've learned so much about coding just from your lib. You change lives man I say. Smile




Theme © iAndrew 2016 - Forum software by © MyBB