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

Revision #3 has been created by Antonio Ramirez on Oct 18, 2012, 1:16:40 PM with the memo:

fix typo bug
« previous (#2)

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 082 times
Version: 1.1
Category: Tips
Written by: Antonio Ramirez
Last updated by: Antonio Ramirez
Created on: Sep 16, 2011
Last updated: 11 years ago
Update Article

Revisions

View all history