public function doctorAction() { $page = $this->_getParam('page', 1); $startTime = $this->_getParam('stime'); $endTime = $this->_getParam('etime'); $count = Application_Model_M_Doctor::getCount(); if (!$startTime && !$endTime) { //按照时间倒序 $res = Application_Model_M_Doctor::getCountByDay($page, 30); $this->view->count = $count; $this->view->res = $res; $this->render('stpl'); } else { } }