/** * */ 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; }
/** * */ public function listAddressAction() { $this->_helper->layout()->disableLayout(); $this->view->rows = $this->_mapper->listAddress($this->_getParam('id')); }