In previous chapters, we've focused on getting data from a server and sending it to the browser and rendering a chart, with a few examples on how we can send data in the other direction. In this recipe, we'll be demonstrating how we can update the model on the server from the browser. This recipe will leverage the work done in the previous recipe.
Complete all the steps in the previous recipe Creating charts with a RESTful controller.
To get started, follow the ensuing instructions:
example_app/protected/views/site/example.phpfile with the following:
<?php $this->pageTitle=Yii::app()->name . ' - Example'; $this->breadcrumbs=array( 'Example', ); ?> <h1>Example ...