コード例 #1
0
 /**
  * 
  */
 public function detailEnterpriseAction()
 {
     if ($this->getRequest()->isXmlHttpRequest()) {
         $this->_helper->layout()->disableLayout();
     }
     $id = $this->_getParam('id');
     $mapperEnterprise = new Register_Model_Mapper_Enterprise();
     $enterprise = $mapperEnterprise->detail($id);
     $address = $mapperEnterprise->listAddress($id)->current();
     $staff = $mapperEnterprise->listStaff($id)->current();
     $this->view->enterprise = $enterprise;
     $this->view->address = $address;
     $this->view->staff = $staff;
 }
コード例 #2
0
 /**
  * 
  */
 public function listStaffAction()
 {
     $this->_helper->layout()->disableLayout();
     $this->view->rows = $this->_mapper->listStaff($this->_getParam('id'));
 }