/** * */ public function searchSubGroupAction() { $mapperSubGroup = new Register_Model_Mapper_ProfSubGroup(); $rows = $mapperSubGroup->listAll($this->_getParam('id')); $opts = array(array('id' => '', 'name' => '')); foreach ($rows as $row) { $opts[] = array('id' => $row->id_profsubgroup, 'name' => $row->sub_group); } $this->_helper->json($opts); }
/** * */ public function listAction() { $this->_helper->layout()->disableLayout(); $this->view->rows = $this->_mapper->listAll(); }