Created
July 25, 2012 00:32
-
-
Save cebe/3173620 to your computer and use it in GitHub Desktop.
Yii: ajax links in ajax request, do not load jquery.js/core scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class MyController extends Controller | |
| { | |
| // ... | |
| public function actionAjaxAction() | |
| { | |
| // do something | |
| $content = $this->renderPartial('viewFile', array(/*data*/), true, false); | |
| Yii::app()->clientScript->renderBodyEnd($content); | |
| echo $content; | |
| } | |
| // ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment