function loadFromModelAction() { $config = App_Model_Config::loadXml('sdc'); //print_r($modelconfig); foreach ($config->classes as $modelconfig) { foreach ($modelconfig->prop as $prop) { $key = $prop->name; $value = $prop->label; $ln = new Sys_Model_Translation(); $ln->setKey($key); $ln->setEn($value); $ln->save(); } } $this->render('blank', null, true); }
function loadFromModelAction() { $config = App_Model_Config::loadXml('eau'); //$package = arrar(); foreach ($config->classes as $modelconfig) { foreach ($modelconfig->prop as $prop) { $key = $prop->name; $value = $prop->label; $ln = new Sys_Model_Translation(); $ln->setKey($key); $ln->setEn($value); $ln->save(); } } $this->_helper->redirector('index'); $this->render('blank', null, true); }
/** * get Singleton Sys_Model_Translation * * @return Sys_Model_Translation */ public static function getObjectByID($id) { $obj = new Sys_Model_Translation(); $obj->find($id); return $obj; }