<< Back to embedding reports

Embed Report Menu

This is a project menu embedded into a page. User can select reports and run them but not get access to the admin page.

        $reportico = \Yii::$app->getModule('reportico');
        $engine = $reportico->getReporticoEngine();        // Fetches reportico engine
        $engine->access_mode = "ONEPROJECT"                // Allows access to a project and all reports in that project
        $engine->initial_execute_mode = "MENU";            // Starts user in Project Menu mode
        $engine->initial_project = "northwind";            // Name of report project folder
        $engine->bootstrap_styles = "3";                   // Set to "3" for bootstrap v3, "2" for V2 or false for no bootstrap
        $engine->force_reportico_mini_maintains = true;    // Often required
        $engine->bootstrap_preloaded = true;               // true if you dont need Reportico to load its own bootstrap
        $engine->clear_reportico_session = true;           // Normally required
        $engine->execute();                                // Run Reportico