user_agent = $_SERVER['HTTP_USER_AGENT']; $this->user_IP = $_SERVER['REMOTE_ADDR']; $this->setRoute('/^\/$/','Index','index'); } /** * @return mixed */ public function getUseragent() { return $this->user_agent; } /** * @return mixed */ public function getUserIP() { return $this->user_IP; } public function setRoute( $regexp, $controller, $action = 'index') { $this->route_table[] = array($regexp,$controller,$action); } public function run(){ } }