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

[eluser]Avatar[/eluser]
ok, further testing proves its not remap that maps it just accesses the function directly. sorry. also further testing proves that I can access functions prefixed with _ from the url and if function doesn't return you get a blank page

[eluser]Avatar[/eluser]
_remap to work inside modules would be a great security feature

which class is _remap coming from anyway? I've spent a good amount of time looking for it the other day when I tried to do my module_map function.

[eluser]wiredesignz[/eluser]
So is there a problem I nedd to address, or is it all working now?

[eluser]Avatar[/eluser]
yes, in 4.0.11 address $_me_home and $_me_parent and loading libs and helpers....etc. from any module. I'm surprised you don't get these errors. I didn't modify your code just drag drop to server folders and it breaks

[eluser]wiredesignz[/eluser]
Post the errors please?

[eluser]Avatar[/eluser]
i already did , please look above

[eluser]wiredesignz[/eluser]
The previous problems you posted appear to be with version 4.0.10 not 4.0.11

I am able to load module helpers and libraries and CI helpers and libraries into a module without problem.

Without more specific detail from you I can't help. Sorry.

[eluser]Avatar[/eluser]
please try to get a uri segment from inside your module on version 4.0.11

[eluser]wiredesignz[/eluser]
Code:
class Home extends Module
{
    function Home()
    {
        parent::Module();
        $this->load->model('vehicles_model', 'vehicles');
        $this->load->helper('cookie');
        $this->load->helper('file');
        $this->load->library('pagination');
        $this->load->library('session');
        
        echo $this->uri->segment(1);

    }

echo's `home`

Code:
modules::debug($this);

//output
Home Object: Array
(
    [0] => _home
    [1] => _modules
    [2] => load
    [3] => _ci_scaffolding
    [4] => _ci_scaff_table
    [5] => config
    [6] => input
    [7] => benchmark
    [8] => uri        <-- uri object
    [9] => output
    [10] => lang
    [11] => default_model
    [12] => db
    [13] => search
    [14] => vehicles
    [15] => pagination
    [16] => session
)

[eluser]Avatar[/eluser]
That's weird, I've created a new module just like above and I get this:
Code:
A PHP Error was encountered

Severity: Warning

Message: Modules::include_once(app/libraries/session.php) [function.Modules-include-once]: failed to open stream: No such file or directory

Filename: helpers/modules_helper.php

Line Number: 60
A PHP Error was encountered

Severity: Warning

Message: Modules::include_once() [function.include]: Failed opening 'app/libraries/session.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')

Filename: helpers/modules_helper.php

Line Number: 60

Fatal error: Class 'session' not found in /home/domain/public_html/demo/app/libraries/modular_extensions.php on line 204
version 4.0.11




Theme © iAndrew 2016 - Forum software by © MyBB