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.
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:
example_app/protected/config/main.phpas shown in the ...