$method($params); } else { throw new DispatchException('Unable to find method: '. $method .' of class: '. $class); } if( method_exists($c, 'render') ) { $c->render(); } else { throw new DispatchException('Unable to find method: render of class: '. $class); } } else { throw new DispatchException('Unable to find controller: '. $controller_directory.$class .'.php'); } } } ?>