public function dispatch() { $this->actCustomRouter(); $this->formatPath(); $path_option = BFL_PathOption::getInstance(); $class_name = $this->controller_prefix . '_' . $path_option->getPathSection(0); $action_name = $this->action_prefix . '_' . $path_option->getPathSection(1); if (BFL_Loader::controllerExist($class_name)) { $ctl = new $class_name(); if (method_exists($ctl, $action_name)) { $ctl->{$action_name}(); } else { if (method_exists($ctl, 'SAC_otherAction')) { $ctl->SAC_otherAction(); } else { $this->notFound(); } } } else { $this->notFound(); } }