Example #1
0
 public function execute()
 {
     $this->apf = APF::get_instance();
     $this->request = $this->apf->get_request();
     $this->response = $this->apf->get_response();
     $attributes = $this->request->get_attributes();
     if (!empty($attributes)) {
         foreach ($attributes as $key => $value) {
             $this->assign_data($key, $value);
         }
     }
     parent::execute();
 }
Example #2
0
 private function initEnv()
 {
     $this->objAPF = $objAPF = APF::get_instance();
     $this->request = $this->objAPF->get_request();
     $this->params = $this->request->get_parameters();
     $this->brokerId = $this->request->getBrokerId();
     $this->cityId = $this->request->getBrokerCityId();
     //设置租房、金铺的经纪人id
     $MainBusiness = Model_Broker_MainBusiness::getMainBusinessByAjkBrokerId($this->brokerId, false);
     $this->hzBrokerId = $MainBusiness['hzBrokerid'];
     $this->jpBrokerId = $MainBusiness['jpBrokerid'];
     $this->debug = isset($_GET['debug']) ? true : false;
 }