Hello,
I'm working on writing a plugin which is composed of Admin interface and a widget.
My Controller.php file inherits from Piwik_Controller_Admin which itself inherits Piwik_Controller.
I create my job for Admin interface:
and my function for the widget:
When I add the widget in the dashboard, I have the following error message:
The requested website idSite is not found in the request, or is invalid. Please check that you are logged in Piwik and have permission to access the specified website.
The program throws me because of the line '
Thank you for your help
[/code]
I'm working on writing a plugin which is composed of Admin interface and a widget.
My Controller.php file inherits from Piwik_Controller_Admin which itself inherits Piwik_Controller.
I create my job for Admin interface:
public function manage_kpi_criteria(){ Piwik::checkUserIsSuperUser(); $view = Piwik_View::factory('kpiCriteriaManager'); $this->setBasicVariablesView($view); $view->menu = Piwik_GetAdminMenu(); echo $view->render(); }
and my function for the widget:
public function display_kpi_criteria(){ $view = Piwik_View::factory('widgetKpiCriteria'); $this->setGeneralVariablesView($view); echo $view->render(); }
When I add the widget in the dashboard, I have the following error message:
The requested website idSite is not found in the request, or is invalid. Please check that you are logged in Piwik and have permission to access the specified website.
The program throws me because of the line '
'$this->setGeneralVariablesView($view)'' Why?
Thank you for your help
[/code]