Piwik Controller Parameter


#1

Hi All,

I am trying to create a chart which takes user input and displays the result in a data table.

For this, I have included html table and input fields in the controller file. I can get input in the input fields but I have no clue how to send the input variables to the API.php? I want to receive the variables at API.php and get required data from database and create dataTable array and return it to controller to create the datatTable. Is there a way to pass parameters from controller file when the function in API is called?

For e.g:
$view = Piwik_ViewDataTable::factory(‘table’);
$view->init( $this->pluginName, FUNCTION, ‘MyPlugin.getResult’ );

Can I send the variables while calling the API page from the controller?

Any help will be greatly appreciated.

Thank You,
Anjali.


#2

(Matthieu Aubry) #3

I’ts hard to answer your post as it’s very broad. Try you rcode and if not working posts small bit here to ask for help?