Recent Topics

Redirect page to new module

Started by on Oct 25, 2018 – Contents updated: Nov 06, 2018

Oct 25, 2018 11:51    

Hello
i created a module inside inc/ directory and am trying to page to that module but it is throwing error "The requested controller [reports] does not exist." Do we need to register newly added module ? if so please let me know the steps.
The folder structure am following is
/project

/inc
    /reports
        /models
        /views         
        reports.ctrl.php

This is call to reports module
$menu_entry_props['href'] =$admin_url.'?ctrl=reports';

Thanks
Kalavathi

Nov 02, 2018 19:40

Yes. For example look at how the sessions module is registered here conf/_application.php and then registers its controllers here: inc/sessions/_sessions.init.php

Nov 06, 2018 08:09

Awasome , it works as ecpected


Form is loading...

powered by b2evolution – This forum is powered by b2evolution CMS, a complete engine for your website.