예제 #1
0
 public function defaultControllerHandler($name)
 {
     $class = '\\WakePHP\\Actions\\' . ClassFinder::getClassBasename($this) . '\\' . $name;
     if (class_exists($class)) {
         $action = new $class();
         $action->setAppInstance($this->appInstance);
         $action->setRequest($this->req);
         $action->setComponent($this);
         $action->perform();
     } else {
         $this->req->setResult(array('errmsg' => 'Unknown controller.'));
     }
 }