Better debug lines
authorRoland Häder <roland@mxchange.org>
Sat, 5 Mar 2011 12:53:28 +0000 (12:53 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 5 Mar 2011 12:53:28 +0000 (12:53 +0000)
inc/classes/main/resolver/controller/class_BaseControllerResolver.php

index 3cef50b..b6b927f 100644 (file)
@@ -78,7 +78,7 @@ class BaseControllerResolver extends BaseResolver {
                $this->setClassName($this->getClassPrefix() . 'DefaultNewsController');
 
                // Generate the class name
-               //* DEBUG: */ echo __METHOD__.": Controller=".$controllerName;
+               //* DEBUG: */ $this->debugOutput('BEFORE: controller=' . $controllerName);
                if ($controllerName != $defaultController) {
                        // Create controller class name
                        $className = $this->getClassPrefix() . $this->convertToClassName($controllerName) . 'Controller';
@@ -89,7 +89,7 @@ class BaseControllerResolver extends BaseResolver {
                        // No news at main command or non-news command
                        $this->setClassName($this->getClassPrefix() . 'DefaultNewsController');
                }
-               //* DEBUG: */ echo ", controller=".$this->getClassName()."<br />\n";
+               //* DEBUG: */ $this->debugOutput('AFTER: controller=' . $this->getClassName());
 
                // Is this class loaded?
                if (!class_exists($this->getClassName())) {