/** * */ public function searchSukuAction() { $mapperSuku = new Register_Model_Mapper_AddSuku(); $rows = $mapperSuku->listAll($this->_getParam('id')); $opts = array(array('id' => '', 'name' => '')); foreach ($rows as $row) { $opts[] = array('id' => $row->id_addsucu, 'name' => $row->sucu); } $this->_helper->json($opts); }
/** * */ public function listAction() { $this->_helper->layout()->disableLayout(); $this->view->rows = $this->_mapper->listAll(); }