Пример #1
0
 public function getPriceAction()
 {
     $priceType = (int) $this->get('priceType', 0);
     $isPriced = (int) $this->get('isPriced', 2);
     $isPublic = (int) $this->get('isPublic', 2);
     $keyword = $this->get('keyword', "");
     $schoolId = (int) $this->get('schoolId', 0);
     $tradeModel = new TradeModel();
     $schoolList = $tradeModel->getSchoolPrice($priceType, $isPriced, $isPublic, $keyword, $schoolId);
     if (!$schoolList) {
         $this->redirect("/error/?errno=" . Common_Error::ERROR_SCHOOL_NOT_EXISTS);
     } else {
         $this->assign('schoolList', $schoolList);
     }
 }