this is my controller action
public function actionCalendarview() {
if (isset($_GET['month']))
$month = trim(stripslashes(strip_tags($_GET['month'])));
if (isset($_GET['year']))
$year = trim(stripslashes(strip_tags($_GET['year'])));
$this->renderPartial('calendarviews', array('month' => $month, 'year' => $year,));
}
this is ajax request
function calendar_call(month, year)
{
jQuery.ajax({url: '<?php echo Yii::app()->request->baseUrl; ?>/index.php/Site/Calendarview/',
type: 'GET',
data: 'month=' + month + '&year=' + year,
success: function(output) {
alert(output);
$('#viewcaledar').html(output);
}
});
}
but it is not render page