예제 #1
0
 /**
  * 
  */
 public function searchFormAction()
 {
     $mapperForm = new Admin_Model_Mapper_SysForm();
     $rows = $mapperForm->listAll(array('module' => $this->_getParam('id')));
     $opts = array(array('id' => '', 'name' => ''));
     foreach ($rows as $row) {
         $opts[] = array('id' => $row->id_sysform, 'name' => $row->form);
     }
     $this->_helper->json($opts);
 }
예제 #2
0
 /**
  * 
  */
 public function listAction()
 {
     $this->_helper->layout()->disableLayout();
     $this->view->rows = $this->_mapper->listAll();
 }