function browseAction() { $this->_helper->layout()->disableLayout(); $month = (int) $this->_getParam('month'); $year = (int) $this->_getParam('year'); // set month and year to present if month // and year not received from query string $m = !$month ? date("n") : $month; $y = !$year ? date("Y") : $year; $calendar = new Pandamp_Lib_Calendar(); $this->view->select_calender = $calendar->writeCalendar($m, $y); }
function browseAction() { if ($this->getRequest()->isXmlHttpRequest()) { $this->_helper->layout()->disableLayout(); } $month = (int) $this->_getParam('month'); $year = (int) $this->_getParam('year'); $m = !$month ? date("n") : $month; $y = !$year ? date("Y") : $year; $calendar = new Pandamp_Lib_Calendar(); $this->view->select_calender = $calendar->writeCalendar($m, $y); }