O'Reilly logo

Highcharts Cookbook by Nicholas Terwoord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating charts with a RESTful controller

For ease of understanding or just to make our API calls tidier, we may want to use RESTful services. This recipe looks at how we can make our existing services RESTful and how we can leverage these changes in our charts.

Getting ready

To set up the basic Yii project, refer to the Setting up a simple Yii Project recipe from this chapter.

We will also need to download and set up RestfullYii, an extension for the Yii framework using the following steps:

  1. Download the appropriate version of RestfullYii from the RestfullYii page (http://yiiframework.com/extension/restfullyii) and extract the contents to example_app/protected/extensions.
  2. Add an aliases entry in example_app/protected/config/main.php as shown in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required