function index() { global $CONFIG; //Get all data taxon $indivImages = jsDecode($CONFIG['default']['peerkalbar_url'] . 'services/taxon/dataIndivLimit'); if (empty($indivImages)) { $this->view->assign('noData', 'empty'); } else { $this->view->assign('noData', 'data existed'); } $this->view->assign('dataImage', $indivImages->result); //pr($indivImages->result); return $this->loadView('home'); }
function dataStat() { global $CONFIG; $person = jsDecode($CONFIG['default']['app_url'] . 'services/specimen/getAllPerson/1'); $this->view->assign('person', $person->result[0]); $indiv = jsDecode($CONFIG['default']['app_url'] . 'services/specimen/getAllIndiv/1'); $this->view->assign('indiv', $indiv); $taxon = jsDecode($CONFIG['default']['app_url'] . 'services/specimen/getAllIndivTaxon/1'); $this->view->assign('taxon', $taxon->result[0]); // pr($taxon->result[0]);die; return $this->loadView('browse/dataStat'); }