Ejemplo n.º 1
0
 /**
  * 
  */
 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);
 }
Ejemplo n.º 2
0
 /**
  * 
  */
 public function listAction()
 {
     $this->_helper->layout()->disableLayout();
     $this->view->rows = $this->_mapper->listAll();
 }