building a plugin using Piwik (integrating json with piwik)
I want to build a plugin for piwik which can plot graphs by reading a json file. I want to bypass the whole process of having to acess a mysql database, is there an easy way that I could achieve this. Also I want to build开发者_高级运维 a UI with standard things such as checkboxes, textfields etc, can I do that using piwik
This is a very vague question. Piwik seems to be a locally-installed web analytics program written in PHP.
You haven't told us what your plugin would do. How would it do whatever it needs to do without touching the database?
Have you read their plugin documentation? It's conveniently titled "How To Write a Plugin", btw. Hard to miss. It looks like the plugin is responsible for creating it's own HTML, so that at least answers your question about building a UI.
You will want to look at the developer friendly example plugin called ExampleUI, which shows how to plot line graphs, pie charts, tag clouds, and report 'tables' with automatic links to the API export, etc.
Enable ExampleUI in your Piwik installation, and click on the ExampleUI tab.
精彩评论