/** * */ public function searchClassAction() { $mapperIsicClass = new Register_Model_Mapper_IsicClass(); $rows = $mapperIsicClass->listAll($this->_getParam('id')); $opts = array(array('id' => '', 'name' => '')); foreach ($rows as $row) { $opts[] = array('id' => $row->id_isicclass, 'name' => $row->name_class); } $this->_helper->json($opts); }
/** * */ public function listAction() { $this->_helper->layout()->disableLayout(); $this->view->rows = $this->_mapper->listAll(); }