public function setUrl($url) { if ($url[strlen($url) - 1] != '/' && !strstr($url, '.htm')) { $url .= '/'; } parent::setUrl($url); }