Exemplo n.º 1
0
 public function getstructureAction()
 {
     // 请求参数
     $request = $this->getRequest()->getParams();
     $option = isset($request['option']) ? $request['option'] : null;
     if ($option) {
         $employee = new Hra_Model_Employee();
         $data = $employee->getStructure($option);
         echo Zend_Json::encode($data);
     }
     exit;
 }