Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mhwinkler/b4bb766ff9e7bbd2e758 to your computer and use it in GitHub Desktop.

Select an option

Save mhwinkler/b4bb766ff9e7bbd2e758 to your computer and use it in GitHub Desktop.
// Line 92
public function bindXml($xml, $model) {
- //print_r($xml."\n ".get_class($model));
+ //print_r($xml."<BR>".get_class($model));
$this->dom = new \DOMDocument();
$this->dom->loadXML($xml);
// Line 159
- if (!class_exists($className)) {
+ if (!class_exists($className, false)) {
// Line 64
+ // Fix for Yii class_exist error
+ $this->logger = new NullLogger();
+ /*
if (class_exists('\Zend_Registry')) { // this does not work due to PHP bug @see http://bugs.php.net/bug.php?id=46813
$this->logger = \Zend_Registry::get('logger');
} else {
$this->logger = new NullLogger();
}
+ */
// Line 24
- private function getXmlFromObj($phpObj)
+ private static function getXmlFromObj($phpObj)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment