sanitize_path($route); $file = DIR_APPLICATION . $path . '.php'; if(is_file($file)){ $this->class = $path; } if($args){ $this->args = $args; } $this->method = 'index'; } public function getClass(){ return $this->class; } public function getMethod(){ return $this->method; } public function getArgs(){ return $this->args; } } ?>