Difference between #2 and #3 of
Avoiding duplicate script download when using Ajax calls to render different Views

Changes

Title unchanged

Avoiding duplicate script download when using Ajax calls to render different Views

Category unchanged

Tips

Yii version unchanged

Tags unchanged

tutorial, AJAX, views

Content changed

[...]
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));
}
```
[...]
9 0
15 followers
Viewed: 32 814 times
Version: 1.1
Category: Tips
Written by: Antonio Ramirez
Last updated by: Antonio Ramirez
Created on: Sep 16, 2011
Last updated: 12 years ago
Update Article

Revisions

View all history