Comparing
#2 with
#3
Content
[...]
if($r->getIsAjaxRequest())
{
// now we render the views without the need to process
// output anymore
$this->renderPartial($view,array('model'=>$model));
Yii::app()->end();
}
$this->render('index', array('model'=>$model,'view'=>$view));
}
```[...]