public function visit($page) { if (strpos($page, 'http://') === 0) { parent::visit($page); } elseif (strpos($page, 'admin.php') === 0) { parent::visit(self::$adminUrl . $page); } else { parent::visit(self::$clientUrl . $page); } }