protected function _getConfig($modelname) { // die($modelname); $config = App_Env::getConfig($modelname); // print_r($config->classes->$modelname); // var_dump($config->classes->$modelname); if (isset($config->classes->{$modelname})) { return $config->classes->{$modelname}; } else { return $config; } // return $config->classes->$modelname; }
public function setModelConfig($config) { //static $x; //echo $x++; //echo "[".CONFIG_PATH . "$config","]"; if (is_string($config)) { $this->_configFileName = $config; $model = $this->_model; $this->_config = App_Env::getConfig($model); } /* if (is_string ( $model )) { $this->_config = $config->classes->$model; } else { $this->_config = $config->classes->$model->getModelName (); } */ // print_r( $this->_config ); return $this; }
public function setModelConfigXml() { //static $x; //echo $x++; //echo "[".CONFIG_PATH . "$config","]"; $model = $this->_modelName; $this->_config = App_Env::getConfig($model); return $this; }
protected function _getConfig($modelname) { return App_Env::getConfig($modelname); }