public function loadAction() { $config = new System_Model_Config(); $configs = $config->findAll(array(new Zend_Db_Expr('code LIKE "ftp_%"'))); $html = array("title" => $this->_("Modules"), "icon" => "fa-cloud-download"); $this->_sendHtml($html); }
protected function _findconfig() { $config = new System_Model_Config(); $values = $config->findAll(array("code IN (?)" => $this->_codes)); $data = array(); foreach ($this->_codes as $code) { $data[$code] = array(); } foreach ($values as $value) { $data[$value->getCode()] = array("code" => $value->getCode(), "label" => $this->_($value->getLabel()), "value" => $value->getValue()); } return $data; }