Hello,
if I want an ajaxLink that should update a Portlet, what is the reccomended way to handle this in corresponding action?
Somewhere I found the following solution:
if(Yii::app()->request->getIsAjaxRequest()) {
$portlet = new ShoppingkartBox();
$portlet->model = ShoppingKart::model()->currentKart(Yii::app()->session->sessionId);
$portlet->init();
$portlet->renderContent();
} else...
The Portlet contains itself some ajaxLink… but those links won’t run because the associated jquery code built buy Yii is missing.
Any suggestion appreciated.
Mauro