I am trying to set up the quick start in my existing PHP Yii applicaiton. https://www.koolreport.com/docs/dashboard/quick_start/
I get the following error ErrorException: Undefined index: in /opt/bitnami/apache2/htdocs/protected/extensions/koolreport/dashboard/Application.php:360
Looking at the APplication.php code and where the error occurs, I can see that the error occurs because the following code at line 353 returns null $next = $this->request()->nextHandler($this);
Through further debugging I can see taht the getKDR() function inside the Request class returns null. Why does this occur?
Below is my code for the application
<?php
use \koolreport\dashboard\Application;
class CoriApp extends Application
{
protected function sidebar()
{
return [
"Nonconformity Board"=>CoriBoard::create()
];
}
}
Below is my code for the view file.
<?php
//require_once "vendor/autoload.php"; //Load library
require_once __DIR__ . "/../../models/dashboards/CoriApp.php";
CoriApp::create()->run();
?>
The library is loaded in my module file of my MVC structure The view file above is loaded through my controller in the code below
public function actionCoriDashboard(){
$this->render('coriDashboard', array());
}
Any help would be appreciated!