public function getBasePath() { $pos = strrpos($this->getScriptPath(), '/'); return $pos === FALSE ? '' : substr($this->getPath(), 0, $pos + 1); }